mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-18 09:28:52 +01:00
Finally removed memory leak?
This commit is contained in:
parent
70a16e55a6
commit
77ea4f4b6d
Binary file not shown.
@ -148,10 +148,10 @@
|
|||||||
// });
|
// });
|
||||||
worker.port.on("isPDF", function(blocking){
|
worker.port.on("isPDF", function(blocking){
|
||||||
if (prefs.allowPDFCanvas){
|
if (prefs.allowPDFCanvas){
|
||||||
worker.port.emit("unblock");
|
this.emit("unblock");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
worker.port.emit(blocking, true);
|
this.emit(blocking, true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
worker.port.emit("setTranslation", "askForPermission", _("askForPermission"));
|
worker.port.emit("setTranslation", "askForPermission", _("askForPermission"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user