Merge branch 'fixes/polyfill' of https://github.com/qmfrederik/noVNC
This commit is contained in:
commit
1cccf9b0e9
|
@ -60,7 +60,20 @@
|
||||||
|
|
||||||
<!-- promise polyfills promises for IE11 -->
|
<!-- promise polyfills promises for IE11 -->
|
||||||
<script src="vendor/promise.js"></script>
|
<script src="vendor/promise.js"></script>
|
||||||
<script src="vendor/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
|
<!-- ES2015/ES6 modules polyfill -->
|
||||||
|
<script type="module">
|
||||||
|
window._noVNC_has_module_support = true;
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function() {
|
||||||
|
if (window._noVNC_has_module_support) return;
|
||||||
|
var loader = document.createElement("script");
|
||||||
|
loader.src = "vendor/browser-es-module-loader/dist/browser-es-module-loader.js";
|
||||||
|
document.head.appendChild(loader);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- actual script modules -->
|
||||||
<script type="module">
|
<script type="module">
|
||||||
// Load supporting scripts
|
// Load supporting scripts
|
||||||
import * as WebUtil from './app/webutil.js';
|
import * as WebUtil from './app/webutil.js';
|
||||||
|
|
Loading…
Reference in New Issue