Skip to content

Commit

Permalink
refactor: wrap globally in try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Morcinek committed Jan 16, 2022
1 parent 3c49629 commit 4cb1dbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ export class ConquerorSpy {
}
}

ConquerorSpy.initialize();
ConquerorSpy.start();
try {
ConquerorSpy.initialize();
ConquerorSpy.start();
} catch (error) {
console.error(error);
}

(window as any).conquerorSpy = ConquerorSpy;

0 comments on commit 4cb1dbb

Please sign in to comment.