diff --git a/os/emscripten/pre.js b/os/emscripten/pre.js index 80987b2999..251f033ac7 100644 --- a/os/emscripten/pre.js +++ b/os/emscripten/pre.js @@ -59,13 +59,6 @@ Module.preRun.push(function() { window.openttd_syncfs = function() { /* Copy the virtual FS to the persistent storage. */ FS.syncfs(false, function (err) { }); - - /* On first time, warn the user about the volatile behaviour of - * persistent storage. */ - if (!window.openttd_syncfs_shown_warning) { - window.openttd_syncfs_shown_warning = true; - Module.onWarningFs(); - } } window.openttd_exit = function() { diff --git a/os/emscripten/shell.html b/os/emscripten/shell.html index f393969306..933c1c5671 100644 --- a/os/emscripten/shell.html +++ b/os/emscripten/shell.html @@ -25,35 +25,10 @@ z-index: 1; } - div.overlay { - height: 40px; - margin: 0 auto; - opacity: 0; - pointer-events: none; - position: absolute; - text-align: center; - transition: opacity 0.3s; - width: 100%; - z-index: 3; - } - div.overlay > div { - pointer-events: none; - } - div.background > div, div.overlay > div { margin: auto; } - #filesystem { - background-color: #e00000; - border: 1px solid #fc6458; - color: #fcf880; - display: none; - outline: #a00000; - padding: 0 4px; - width: 600px; - } - #title, #message { background-color: #838383; border: 1px solid #a8a8a8; @@ -122,11 +97,6 @@ -
-
- Warning: savegames are stored in the Indexed DB of your browser.
Your browser can delete savegames without notice! -
-

@@ -216,17 +186,6 @@ document.getElementById("message").innerHTML = "The game crashed!

Please reload your browser to restart the game."; }, - onWarningFs: function() { - document.getElementById("filesystem").style.display = "inline-block"; - document.getElementById("overlay").style.opacity = 1; - setTimeout(function() { - document.getElementById("overlay").style.opacity = 0; - setTimeout(function() { - document.getElementById("filesystem").style.display = "none"; - }, 300); - }, 10000); - }, - textInputValue: null, startTextInput: function(text) {