Adapt extension for Chrome support

This commit is contained in:
2025-04-30 14:31:32 +04:00
parent bb56e269c4
commit a1a9a01e2c
4 changed files with 17 additions and 19 deletions

View File

@@ -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