mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
add sass
This commit is contained in:
13
src/assets/js/background-opera.js
Normal file
13
src/assets/js/background-opera.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// Original code sourced from https://forums.opera.com/topic/25046/how-to-disable-completely-the-speed-dial/14
|
||||
|
||||
chrome.tabs.onCreated.addListener((tab) => {
|
||||
if (tab.status === "complete" && tab.url === "chrome://startpage/") {
|
||||
chrome.tabs.update(tab.id, { url: chrome.extension.getURL("index.html") });
|
||||
}
|
||||
});
|
||||
|
||||
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
||||
if (changeInfo.status === "complete" && tab.url === "chrome://startpage/") {
|
||||
chrome.tabs.update(tabId, { url: chrome.extension.getURL("index.html") });
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user