Commit a0164ed7 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Issue warning if localstorage fails

parent 7286c9a3
...@@ -111,7 +111,9 @@ var run = function () { ...@@ -111,7 +111,9 @@ var run = function () {
// insert ballot contract if there are no files available // insert ballot contract if there are no files available
if (!loadingFromGist && Object.keys(files.list()).length === 0) { if (!loadingFromGist && Object.keys(files.list()).length === 0) {
files.set(examples.ballot.name, examples.ballot.content) if (!files.set(examples.ballot.name, examples.ballot.content)) {
alert('Failed to store example contract in browser. Remix will not work properly. Please ensure Remix has access to LocalStorage. Safari in Private mode is known not to work.')
}
} }
// ----------------- Chrome cloud storage sync -------------------- // ----------------- Chrome cloud storage sync --------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment