1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-10 11:04:38 +02:00

handle multitab error.

This commit is contained in:
Kushagra Gour
2018-01-23 02:12:35 +05:30
parent 213b9f166d
commit 98fd9efc33
2 changed files with 5 additions and 4 deletions

View File

@@ -58,7 +58,10 @@
if (err.code === 'failed-precondition') {
// Multiple tabs open, persistence can only be enabled
// in one tab at a a time.
// ...
alert(
"Opening Web Maker web app in multiple tabs isn't supported at present and it seems like you already have it opened in another tab. Please use in one tab."
);
window.trackEvent('fn', 'multiTabError');
} else if (err.code === 'unimplemented') {
// The current browser does not support all of the
// features required to enable persistence