Skip to content

Commit 22a1f9e

Browse files
Fixed crazy games data module usage
1 parent 8a62ffe commit 22a1f9e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dist/playgama-bridge.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/platform-bridges/CrazyGamesPlatformBridge.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class CrazyGamesPlatformBridge extends PlatformBridgeBase {
9393
waitFor('CrazyGames', 'SDK', 'init').then(() => {
9494
this._platformSdk = window.CrazyGames.SDK
9595

96-
this._defaultStorageType = STORAGE_TYPE.LOCAL_STORAGE
96+
this._defaultStorageType = STORAGE_TYPE.PLATFORM_INTERNAL
9797
this._isBannerSupported = true
9898
this._platformSdk.init().then(() => {
9999
this.#isUserAccountAvailable = this._platformSdk.user.isUserAccountAvailable
@@ -357,8 +357,6 @@ class CrazyGamesPlatformBridge extends PlatformBridgeBase {
357357
}
358358

359359
this._isPlayerAuthorized = true
360-
this._defaultStorageType = STORAGE_TYPE.PLATFORM_INTERNAL
361-
362360
if (user.username) {
363361
this._playerName = user.username
364362
}

0 commit comments

Comments
 (0)