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;
|
private deadlineTimer: number;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
if (!document.location.href.includes("background")) {
|
||||||
|
throw new Error("Not on background");
|
||||||
|
}
|
||||||
super();
|
super();
|
||||||
this.active = true;
|
this.active = true;
|
||||||
this.shouldReload = false;
|
this.shouldReload = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user