Created
April 2, 2018 20:25
-
-
Save BrightnBubbly/2ba6b39f537a5cc899e9c95cfa0879a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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