Added the ability to bookmark the extension, along with some visual adjustments
This commit is contained in:
11
dist/chromium/shortcut-intent.js
vendored
Normal file
11
dist/chromium/shortcut-intent.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Capture the bookmark before Fusion rewrites its navigation URL.
|
||||
(() => {
|
||||
if (window.top !== window) return;
|
||||
const capture = () => {
|
||||
const url = new URL(window.location.href);
|
||||
if (url.hash !== "#opportunities-extension" && url.searchParams.get("opportunitiesExtension") !== "open") return;
|
||||
try { window.sessionStorage.setItem("opportunitiesExtension.shortcutIntent", String(Date.now())); } catch { /* The URL remains a fallback. */ }
|
||||
};
|
||||
capture();
|
||||
window.addEventListener("hashchange", capture);
|
||||
})();
|
||||
Reference in New Issue
Block a user