1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00
video.js/test/sinon.js
Gary Katsevman 3921b7febf
fix: properly return promise from requestFullscreen and exitFullscreen (#7299)
Mapping the promise returned from the helpers to the executor's resolve, and reject
methods. We also need to catch the error in the promise chain that's
created inside exitFullscreenHelper_.

Fixes #7298.
2021-07-06 14:56:02 -04:00

13 lines
382 B
JavaScript

/* eslint-disable no-undef */
const s = document.createElement('script');
// on IE11 and Safari 9, load the last supported sinon version
if (/(?:MSIE|Trident\/7.0|Version\/9.*Safari)/.test(navigator.userAgent)) {
s.src = 'https://unpkg.com/sinon@9.2.4/pkg/sinon-no-sourcemaps.js';
} else {
s.src = '/test/base/node_modules/sinon/pkg/sinon.js';
}
document.write(s.outerHTML);