|
@@ -626,8 +626,11 @@ export class VideoContainer extends LargeContainer {
|
626
|
626
|
// the environment words the report. To reduce the risk of scaring a
|
627
|
627
|
// developer, make sure that the rejection is handled. We cannot really
|
628
|
628
|
// do anything substantial about the rejection and, more importantly, we
|
629
|
|
- // do not care.
|
630
|
|
- this.$videoBackground[0].play()
|
631
|
|
- .catch(reason => logger.error(reason));
|
|
629
|
+ // do not care. Some browsers (at this time, only Edge is known) don't
|
|
630
|
+ // return a promise from .play(), so check before trying to catch.
|
|
631
|
+ const res = this.$videoBackground[0].play();
|
|
632
|
+ if (typeof res !== 'undefined') {
|
|
633
|
+ res.catch(reason => logger.error(reason));
|
|
634
|
+ }
|
632
|
635
|
}
|
633
|
636
|
}
|