Skip to content

Commit

Permalink
charity-games-plugin: fix timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Aug 23, 2024
1 parent 931af7a commit 05f0949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/games/bit-jumper/src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export enum StorageKey {
MUTE = 'mute-sound',
}

export const VERSION = 'v1.0.2';
export const VERSION = 'v1.0.3';
4 changes: 3 additions & 1 deletion libs/phaser/plugins/src/lib/charity-games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export class CharityGamesPlugin extends Phaser.Plugins.BasePlugin {
this.isDisabled = process.env['DISABLE_CHARITY_GAMES_SDK'] === 'true';
if (this.isDisabled) console.info('Charity Games SDK is disabled');

const { signal, cancel } = createTimeout(10 * (this.isDisabled ? 0 : 10));
const { signal, cancel } = createTimeout(
(this.isDisabled ? 0 : 10) * SECONDS
);
try {
this.#preload();

Expand Down

0 comments on commit 05f0949

Please sign in to comment.