Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix: Ensure global dojo is available
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Oct 10, 2022
1 parent 048c924 commit 8b4ce4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/userscript/source/UserScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class UserScript {
}

static async waitForGame(timeout = 30000): Promise<GamePage> {
if (isNil(UserScript._gameStartSignal)) {
if (isNil(UserScript._gameStartSignal) && dojo) {
UserScript._gameStartSignal = new Promise(resolve => {
UserScript._gameStartSignalResolver = resolve;
});
Expand Down

0 comments on commit 8b4ce4e

Please sign in to comment.