UNPKG

wxt

Version:

⚡ Next-gen Web Extension Framework

13 lines (12 loc) 452 B
import { ContentScriptContext } from '../content-script-context'; /** * Create a util that watches for URL changes, dispatching the custom event when detected. Stops * watching when content script is invalidated. */ export declare function createLocationWatcher(ctx: ContentScriptContext): { /** * Ensure the location watcher is actively looking for URL changes. If it's already watching, * this is a noop. */ run(): void; };