diff options
| author | jmoenig <jens@moenig.org> | 2013-04-11 20:15:59 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-04-11 20:15:59 +0200 |
| commit | a03d8fba4d353e9fa7b8bf950ac120d677586303 (patch) | |
| tree | 6576b056d156ea80f7da80f8046a14a34af4f8ef | |
| parent | 5b94c73303564a9d1857d3ef34830de0a6460eaf (diff) | |
| download | snap-yow-a03d8fba4d353e9fa7b8bf950ac120d677586303.tar.gz snap-yow-a03d8fba4d353e9fa7b8bf950ac120d677586303.zip | |
Missing localStorage no longer prevents Snap! from loading
… as in IE9 running locally
| -rw-r--r-- | gui.js | 14 | ||||
| -rwxr-xr-x | history.txt | 1 |
2 files changed, 9 insertions, 6 deletions
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-April-10'; +modules.gui = '2013-April-11'; // Declarations @@ -160,12 +160,14 @@ IDE_Morph.prototype.openIn = function (world) { world.userMenu = this.userMenu; // get persistent user data, if any - usr = localStorage['-snap-user']; - if (usr) { - usr = SnapCloud.parseResponse(usr)[0]; + if (localStorage) { + usr = localStorage['-snap-user']; if (usr) { - SnapCloud.username = usr.username || null; - SnapCloud.password = usr.password || null; + usr = SnapCloud.parseResponse(usr)[0]; + if (usr) { + SnapCloud.username = usr.username || null; + SnapCloud.password = usr.password || null; + } } } diff --git a/history.txt b/history.txt index 7444637..7cec8b9 100755 --- a/history.txt +++ b/history.txt @@ -1616,3 +1616,4 @@ ______ 130411 ------ * Morphic: virtual keyboard enhancements (see Morphic.js) +* GUI: disabled localStorage (as in I9 running locally) no longer prevents Snap! from loading |
