Make sure we're on background
This commit is contained in:
parent
b2e20b9875
commit
4ba827fc15
@ -61,6 +61,9 @@ export class Manager extends EventEmitter {
|
||||
private deadlineTimer: number;
|
||||
|
||||
constructor() {
|
||||
if (!document.location.href.includes("background")) {
|
||||
throw new Error("Not on background");
|
||||
}
|
||||
super();
|
||||
this.active = true;
|
||||
this.shouldReload = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user