Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 18, 2024
1 parent f2e870f commit caac9a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/utils/localStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default class gameStorage {
}

static setItem(key, value) {
console.log('setItem', key, value, window.inCrazyGames );
try {
if(gameStorage.isCrazyGames()) {
window.CrazyGames.SDK.data.setItem(key, value);
Expand All @@ -14,6 +15,7 @@ export default class gameStorage {
} catch (e) {}
}
static getItem(key) {
console.log('getItem', key, window.inCrazyGames );
try {
if(gameStorage.isCrazyGames()) {
return window.CrazyGames.SDK.data.getItem(key);
Expand All @@ -23,6 +25,7 @@ export default class gameStorage {
} catch (e) {}
}
static removeItem(key) {
console.log('removeItem', key, window.inCrazyGames );
try {
if(gameStorage.isCrazyGames()) {
window.CrazyGames.SDK.data.removeItem(key);
Expand Down

0 comments on commit caac9a3

Please sign in to comment.