Adapt extension for Chrome support
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
browser.tabs.query({ active: true, currentWindow: true }, (tabs) => {
|
||||
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
|
||||
const tabId = tabs[0].id;
|
||||
|
||||
browser.runtime.sendMessage({ action: "getNostrLinks", tabId }, (response) => {
|
||||
chrome.runtime.sendMessage({ action: "getNostrLinks", tabId }, (response) => {
|
||||
const menu = document.getElementById("link-menu");
|
||||
if (response.links && response.links.length > 0) {
|
||||
menu.innerHTML = response.links
|
||||
|
||||
Reference in New Issue
Block a user