1
0
Fork 0

firefox fixes

This commit is contained in:
Lukas Winkler 2017-08-26 18:37:56 +02:00
parent 85e5c9fa44
commit 1b62b2aa90
4 changed files with 18 additions and 6 deletions

View file

@ -31,7 +31,7 @@
"message": "remove draft",
"description": "buttontext"
},
"goto-host": {
"goto_host": {
"message": "go to",
"description": "when a host that is currently not opened, a button apears for opening this host in the current tab"
},

View file

@ -106,4 +106,8 @@ a:hover {
.controls__reset {
margin-right: 10px;
font-size: 18px;
}
#editor {
font-family: monospace
}

View file

@ -160,8 +160,8 @@ document.addEventListener('DOMContentLoaded', function() {
}
},
apiclb: {
onSelectedTab: function(tab) {
popup.tabId = tab.id;
onSelectedTab: function(tabs) {
popup.tabId = tabs[0].id;
chrome.tabs.sendMessage(popup.tabId, {method: "getData", reload: false}, popup.apiclb.onGetData);
},
onGetData: function(response) {
@ -388,7 +388,10 @@ document.addEventListener('DOMContentLoaded', function() {
* Connect front end (load info about current site)
*/
chrome.tabs.getSelected(null, popup.apiclb.onSelectedTab);
chrome.tabs.query({
active: true,
lastFocusedWindow: true
}, popup.apiclb.onSelectedTab);
/**

View file

@ -22,5 +22,10 @@
},
"content_security_policy": "script-src 'self'; object-src 'self'",
"permissions": [ "storage", "http://*/", "https://*/", "tabs" ],
"default_locale": "en"
}
"default_locale": "en",
"applications": {
"gecko": {
"id": "tempid@lw1.at",
"strict_min_version": "42.0"
}
}}