Make sure we're on background

This commit is contained in:
Nils Maier 2019-10-11 15:28:38 +02:00
parent b2e20b9875
commit 4ba827fc15

View File

@ -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;