1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 18:16:19 +02:00

fix writefile error message

This commit is contained in:
Kushagra Gour
2017-07-16 01:09:39 +05:30
parent 71e7a7e2a9
commit 35a8ad71d7

View File

@ -971,10 +971,10 @@ customEditorFontInput
trackEvent('fn', 'error', 'writeFile'); trackEvent('fn', 'error', 'writeFile');
// When there are too many write errors, show a message. // When there are too many write errors, show a message.
writeFile.errorCount = (writeFile.errorCount || 0) + 1; writeFile.errorCount = (writeFile.errorCount || 0) + 1;
if (writeFile.errorCount === 10) { if (writeFile.errorCount === 4) {
setTimeout(function() { setTimeout(function() {
alert( alert(
"Oops! Seems like your preview isn't updating. Please try the following steps until it fixes:\n - Refresh Web Maker\n - Restart Chrome browser\n - Reinstall Web Maker (don't forget to export all your creations from saved items pane (click the OPEN button) before reinstalling)\n\nIf nothing works, please tweet out to @webmakerApp." "Oops! Seems like your preview isn't updating. Please try the following steps until it fixes:\n - Refresh Web Maker\n - Restart browser\n - Update browser\n - Reinstall Web Maker (don't forget to export all your creations from saved items pane (click the OPEN button) before reinstalling)\n\nIf nothing works, please tweet out to @webmakerApp."
); );
trackEvent('ui', 'writeFileMessageSeen'); trackEvent('ui', 'writeFileMessageSeen');
}, 1000); }, 1000);