Last active
September 4, 2024 16:46
-
-
Save styk-tv/a3ec64ee3eef039fd77416d22f1988db to your computer and use it in GitHub Desktop.
Revisions
-
styk-tv revised this gist
Sep 4, 2024 . 1 changed file with 21 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,21 @@ const xrstorage = { storage: {}, save: function(key, value) { this.storage[key] = value; console.log(`Saved: ${key} = ${value}`); }, load: function(key) { const value = this.storage[key]; console.log(`Loaded: ${key} = ${value}`); return value; }, loadAll: function() { console.log("Loading all data:", this.storage); return this.storage; } }; console.log("xrstorage is loaded and ready to use"); -
styk-tv created this gist
Sep 4, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ console.log ("its alive")