This file contains hidden or 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
| /* Checks if localStorage exists on the browser, if not, creates a JSONFallbackStorage object where all the data will be stored. Also creates the localStorage methods so you won't need to change anything on your script. Just remember to send the data on JSONFallbackStore to the server. */ | |
| (function(window, undefined){ | |
| if (typeof(localStorage) === undefined) { | |
| JSONFallbackStore = {}; | |
| window.localStorage = { | |
| getItem: function(key){ | |
| return JSONFallbackStore[key]; | |
| }, | |
| setItem: function(key, value){ |