Commit 9315a7b7 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

Fixing compatiblity with Firefox

parent c186b78548b5
......@@ -27,10 +27,12 @@
"use strict";
function registerNavigations(onBeforeNavigate, onCompleted) {
chrome.webNavigation.onBeforeNavigate.addListener(onBeforeNavigate, {
urls: ["<all_urls>"]
url: [{ urlMatches: "https?://.*" }], // firefox
//urls: ["<all_urls>"] // crome
});
chrome.webNavigation.onCompleted.addListener(onCompleted, {
urls: ["<all_urls>"]
url: [{ urlMatches: "https?://.*" }], // firefox
//urls: ["<all_urls>"] // crome
});
}
module.exports = { registerNavigations: registerNavigations };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment