Skip to content

Commit

Permalink
Added Firefox support
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed Nov 7, 2021
1 parent 462260e commit 3c1e34a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ chrome.runtime.onMessage.addListener(async function (message, sender, sendRespon
}

if (message.action === 'get-tab-url') {
sendResponse({
url: new URL(sender.tab.url).hostname,
id: sender.tab.id
});
var response = {
url: new URL(sender.url || sender.tab.url).hostname,
id: sender.tab.id
};

sendResponse(response);

return response;
}

});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Frame By Frame",
"description": "__MSG_description__",
"version": "2.2.1",
"version": "2.2.2",
"default_locale": "en",
"icons": {
"16": "icons/16.png",
Expand Down

0 comments on commit 3c1e34a

Please sign in to comment.