Browse Source

Correctly handle disabled cookies etc. Fixes #318

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
c62e2d15f2
  1. 3
      static/local.js

3
static/local.js

@ -34,6 +34,7 @@ define(function (require) {
result = window.localStorage.getItem(prefix + key);
} catch (e) {
// Swallow up any security exceptions...
return ifNotPresent;
}
if (result === null) return ifNotPresent;
return result;
@ -62,4 +63,4 @@ define(function (require) {
get: get,
remove: remove
};
});
});

Loading…
Cancel
Save