Interface and basic functionality.
Just learning how to make a basic extension. Creating an interface and setting up some basic plumbing.
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
browser.runtime.sendMessage({ greeting: "hello" }).then((response) => {
|
||||
console.log("Received response: ", response);
|
||||
});
|
||||
|
||||
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
console.log("Received request: ", request);
|
||||
});
|
||||
let script = document.createElement('script');
|
||||
script.setAttribute('src', browser.runtime.getURL('nostr.js'));
|
||||
document.body.appendChild(script);
|
||||
|
||||
Reference in New Issue
Block a user