1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Relative paths did no longer work for remoteRequire in nightly.

Also fixes #113 (first tab after restoration did not load frame script) - no clue why.
This commit is contained in:
kkapsner 2017-04-23 00:27:40 +02:00
parent c5bb80bbb8
commit 231e33ffb7
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,9 @@
};
const {processes, frames, remoteRequire} = require("sdk/remote/parent");
remoteRequire("./frame.js", module);
// remoteRequire("./frame.js", module); // currently not working due to a regression in the SDK
var framePath = require("sdk/self").data.url("").replace(/data\/$/, "") + "lib/frame.js";
remoteRequire(framePath);
frames.port.on("canvasBlocker-notify", function(frame, data){
notify(data, {lists, _, notificationPref, browser: frame.frameElement});

View File

@ -7,6 +7,7 @@ Version 0.3.8:
fixes:
- prevented error when canvas has size zero
- frame script was not loaded in the first tab that was restored from the last session
Version 0.3.7:
new features: