mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-03-13 11:44:12 +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:
parent
c5bb80bbb8
commit
231e33ffb7
@ -29,7 +29,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const {processes, frames, remoteRequire} = require("sdk/remote/parent");
|
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){
|
frames.port.on("canvasBlocker-notify", function(frame, data){
|
||||||
notify(data, {lists, _, notificationPref, browser: frame.frameElement});
|
notify(data, {lists, _, notificationPref, browser: frame.frameElement});
|
||||||
|
@ -7,6 +7,7 @@ Version 0.3.8:
|
|||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
- prevented error when canvas has size zero
|
- 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:
|
Version 0.3.7:
|
||||||
new features:
|
new features:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user