Merge pull request #475 from ethereum/safari-private-mode

Issue warning if localstorage fails
pull/1/head
chriseth 8 years ago committed by GitHub
commit b713ce1ace
  1. 4
      src/app.js

@ -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 --------------------

Loading…
Cancel
Save