mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
switch to local file sharing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user