We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d0af0 commit 37c081cCopy full SHA for 37c081c
popup.js
@@ -100,6 +100,12 @@ function removeCustom() {
100
} else {
101
document.querySelector('div#textShadowOptions').style.display = "none";
102
}
103
+ chrome.tabs.query({active: true, currentWindow: true}, async tabs => {
104
+ var activeTab = tabs[0];
105
+ var activeTabURL = new URL(activeTab.url);
106
+ let urlField = document.querySelector("#add_url");
107
+ urlField.value = activeTabURL.host;
108
+ });
109
updatePreview(); // Update preview
110
browser.runtime.sendMessage({ // Send message to background script asking to update the action icon
111
request: "update-action-icon"
0 commit comments