mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-30 21:07:01 +02:00
Added export-helpers page
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
const button1 = document.querySelector("#function-notify");
|
||||
|
||||
button1.addEventListener("click", () => {
|
||||
window.notify("Message from the page script!");
|
||||
});
|
||||
|
||||
const button2 = document.querySelector("#object-notify");
|
||||
|
||||
button2.addEventListener("click", () => {
|
||||
window.messenger.notify("Message from the page script!");
|
||||
});
|
||||
Reference in New Issue
Block a user