mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Botched it
This commit is contained in:
@@ -37,11 +37,13 @@ document.addEventListener("click", function(e) {
|
||||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
|
||||
chrome.tabs.sendMessage(tabs[0].id, {beastURL: chosenBeastURL});
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
else if (e.target.classList.contains("clear")) {
|
||||
chrome.tabs.reload();
|
||||
|
||||
window.close();
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user