Index: ext/background.js |
=================================================================== |
--- a/ext/background.js |
+++ b/ext/background.js |
@@ -90,16 +90,18 @@ |
// the onBeforeRequest handler. |
let frames = framesOfTabs.get(this.id); |
if (frames) |
{ |
let frame = frames.get(0); |
if (frame) |
return frame.url; |
} |
+ |
+ return undefined; |
}, |
sendMessage(message, responseCallback) |
{ |
browser.tabs.sendMessage(this.id, message, responseCallback); |
} |
}; |
ext.getPage = id => new Page({id: parseInt(id, 10)}); |