Index: lib/options.js |
=================================================================== |
--- a/lib/options.js |
+++ b/lib/options.js |
@@ -123,19 +123,19 @@ |
} |
}); |
}; |
// On Firefox for Android, open the options page directly when the browser |
// action is clicked. |
chrome.browserAction.onClicked.addListener(() => |
{ |
- ext.pages.query({active: true, lastFocusedWindow: true}, pages => |
+ chrome.tabs.query({active: true, lastFocusedWindow: true}, ([tab]) => |
{ |
- let currentPage = pages[0]; |
+ let currentPage = new ext.Page(tab); |
showOptions(optionsPage => |
{ |
if (!/^https?:$/.test(currentPage.url.protocol)) |
return; |
optionsPage.sendMessage({ |
type: "app.respond", |