update to wabac.js 2.9.0-beta.0, smaller file size, loading improvements
ruffle: support for ruffle for flash loading, both hosted and in app electron: update to latest beta (14) for latest chromium version embed error messages: better error message when service worker can not be found electron: build universal app for osx bump to 1.5.0!
This commit is contained in:
+6
-3
@@ -11,8 +11,11 @@ function registerSW(name = "sw.js", scope = "./") {
|
||||
});
|
||||
|
||||
if (!navigator.serviceWorker) {
|
||||
console.error("Service Workers not supported");
|
||||
reject();
|
||||
const errMsg = `Sorry, ReplayWeb.page won't work in this browser as Service Workers are not supported.
|
||||
Please try a different browser.
|
||||
(Service Workers are disabled in Firefox in Private Mode. If Using Private Mode in Firefox, try regular mode)`;
|
||||
console.error(errMsg);
|
||||
reject(errMsg);
|
||||
}
|
||||
|
||||
register(scope + name, {
|
||||
@@ -24,7 +27,7 @@ function registerSW(name = "sw.js", scope = "./") {
|
||||
|
||||
error (error) {
|
||||
console.error("Error during service worker registration:", error);
|
||||
reject();
|
||||
reject(`ReplayWeb.page could not be loaded due to the following error:\n${error.toString()}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user