@sgunhouse I thought since opera supports the tabs extension API, I code use that function from that , and I give permissions in my manifest.json for tabs. Is my logic flawed? How could I fix it?
Posts made by steadythrone376
-
RE: [Duplicated][Request]Add Tab IslandsOpera GX
-
RE: [Duplicated][Request]Add Tab IslandsOpera GX
Hello, I wrote code to create tab islands in opera gx. I keep getting the error tab that tab grouping isn't supported in this window. I will provide my background.js. Thanks!
chrome.runtime.onInstalled.addListener(() => { console.log("Tab Islands extension installed."); }); chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { if (request.action === "organizeTabs") { chrome.tabs.query({ currentWindow: true }, (tabs) => { if (chrome.tabGroups) { chrome.tabs.group({ tabIds: tabs.map(tab => tab.id) }, (group) => { if (chrome.runtime.lastError) { console.error("Error grouping tabs:", chrome.runtime.lastError); return; } chrome.tabGroups.update(group, { title: "Tab Island", color: "blue" }, () => { if (chrome.runtime.lastError) { console.error("Error updating tab group:", chrome.runtime.lastError); return; } console.log("Tabs organized into islands."); }); }); } else { console.error("Tab grouping is not supported in this window."); } }); } });