1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

Fixed system tabs opening

Updated manifest permissions
This commit is contained in:
Michael Gordeev
2020-03-26 00:42:49 +03:00
parent 8a17593ea5
commit 2844eb50da
3 changed files with 34 additions and 19 deletions
+9 -2
View File
@@ -156,9 +156,16 @@ function AddCollection(collection)
i.onclick = function () { RestoreTabs(i.parentElement.parentElement) };
});
list.querySelectorAll("div > div:last-child > div > span").forEach(i =>
list.querySelectorAll("div > div:last-child > div > span").forEach(i =>
{
i.onclick = function () { window.open(i.getAttribute("value"), '_blank'); };
i.onclick = function () {
chrome.runtime.sendMessage(
{
command: "openTab",
url: i.getAttribute("value")
}
);
};
})
document.querySelectorAll(".tabsAside.pane > section > div > div:first-child > button").forEach(i =>