12 lines
526 B
JavaScript
12 lines
526 B
JavaScript
// 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);
|
|
})();
|