switch to local file sharing

This commit is contained in:
SethBurkart123
2024-05-20 23:21:43 +10:00
parent f64f356061
commit 301ad3f296
5 changed files with 46 additions and 173 deletions
-8
View File
@@ -72,14 +72,6 @@ function reloadSeqtaPages() {
result.then(open, onError)
}
browser.tabs.onUpdated.addListener((tabId, _, tab) => {
if (tab.url?.includes('share.betterseqta')) {
const id = new URL(tab.url).searchParams.get('id');
const justCreated = new URL(tab.url).searchParams.get('justCreated');
browser.tabs.update(tabId, { url: `${browser.runtime.getURL('src/interface/index.html')}?id=${id}&justCreated=${justCreated}#theme` });
}
});
// Main message listener
browser.runtime.onMessage.addListener((request: any, _sender: any, sendResponse: any) => {
switch (request.type) {