Commit Graph

18 Commits

Author SHA1 Message Date
Pierre Ossman edb7879927 IE compatibility fix for babel workers
IE doesn't support document.currentScript, so we need to have a fallback.
2017-07-21 15:03:52 +02:00
Pierre Ossman 858ea4a774 Avoid use of 'let' and 'const'
They are not supported on older browsers, e.g. iOS 9.
2017-06-02 15:41:37 +02:00
Pierre Ossman 493ad1a24b Avoid nested function declarations
Not supported in older browsers, e.g. iOS 9.
2017-06-02 15:19:37 +02:00
Pierre Ossman 39193b2878 Merge branch 'record' of https://github.com/CendioOssman/noVNC 2017-06-01 10:29:19 +02:00
Pierre Ossman 1433360ad9 Use one entry per file in transpile cache
This avoids any risk of the cache key and contents getting out
of sync.
2017-05-22 14:01:44 +02:00
Pierre Ossman 55d5353f90 Remove #nocache system as it is unused 2017-05-22 13:48:59 +02:00
Pierre Ossman aadcf47d6f Handle loading web workers in any path
The URL is interpreted relative the current page, not relative
the current script. So we need to have some extra code in order to
allow the module loader to be agnostic to its path.
2017-05-19 14:39:49 +02:00
Pierre Ossman 777df7c274 Don't fail on babel cache storage errors
It is just a cache after all, so failures are not fatal. Users will get longer
load times, but at least they'll get a page.
2017-05-16 14:07:03 +02:00
Soichi Hayashi dd44a8ead8 Fixed the issue where novnc can't be relocated 2017-04-05 16:09:50 +02:00
Pierre Ossman f7c620d34e Generate source map for ES module loader rollup
Makes it easier to debug things as you get the original source and
proper line numbers.
2017-03-27 16:30:08 +02:00
Pierre Ossman 36efb9783c Handle uncaught WebWorker exceptions 2017-03-27 16:29:38 +02:00
Pierre Ossman 5d00fd9bf0 Try to populate error location on Promise errors 2017-03-27 16:29:38 +02:00
Pierre Ossman 999b5da753 Only use unhandledrejection fallback when needed 2017-03-27 16:29:38 +02:00
Pierre Ossman 36653517a5 Use common code to handle Promise errors 2017-03-27 16:29:38 +02:00
Solly Ross d6c17390f0 Make vnc_playback.html functional once more
This commit makes vnc_playback.html functional once more, and completely
refactors tests/playback.js to make it usable in other scenarios.

In order for vnc_playback.js to properly load playback files now, they
must `export` their variables.
2017-03-21 17:39:07 -04:00
Solly Ross 152c399513 Vendor in an IE11 polyfill for Promises
This commit introduces a polyfill to add support for Promises in IE11.
This means IE11 can be tested without first running
`utils/as_require.js`.
2017-03-21 17:39:07 -04:00
Solly Ross adfc9d3f54 Move error handler into separate file
This commit moves the global error handler into a separate file,
so that it can catch module loading errors.

This also adds support for properly displaying error messages with
newlines in them (since the module loader may throw those)
2017-03-21 17:39:07 -04:00
Solly Ross 399fa2ee2d Optimize ES6 Module Loader Polyfill
This commit makes the ES6 module loader polyfill use Web Workers,
so that Babel doesn't block the browser from animating.  It also
uses localStorage to cache the compiled results, only recompiling
on source changes, so it makes loading faster while developing noVNC.

This includes a vendored copy of the ES6 module loader, modified as
described above.
2017-03-21 17:39:07 -04:00