Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Created April 2, 2018 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/2ba6b39f537a5cc899e9c95cfa0879a3 to your computer and use it in GitHub Desktop.
Save BrightnBubbly/2ba6b39f537a5cc899e9c95cfa0879a3 to your computer and use it in GitHub Desktop.
noSessionStorage: function() {
var testKey = 'test', storage = window.sessionStorage;
try {
storage.setItem(testKey, '1');
storage.removeItem(testKey);
console.log("storage");
return false;
} catch (error) {
console.log("no storage");
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment