mirror of
https://github.com/linkwarden/browser-extension.git
synced 2026-06-23 04:10:26 +00:00
update checkmark state on on browser startup
This commit is contained in:
@@ -336,6 +336,14 @@ browser.tabs.onUpdated.addListener(async (tabId, changeInfo) => {
|
||||
}
|
||||
});
|
||||
|
||||
// On extension startup - check current tab
|
||||
(async () => {
|
||||
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
|
||||
if (tabs[0]?.url && tabs[0].id !== undefined) {
|
||||
await checkAndUpdateTab(tabs[0].id);
|
||||
}
|
||||
})();
|
||||
|
||||
// Omnibox implementation
|
||||
|
||||
browser.omnibox.onInputStarted.addListener(async () => {
|
||||
|
||||
Reference in New Issue
Block a user