Skip to content

Commit d3983a6

Browse files
authored
docs: Revert #2380 - locationWatcher (#2416)
1 parent 9304319 commit d3983a6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎docs/guide/essentials/content-scripts.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,6 @@ const watchPattern = new MatchPattern('*://*.youtube.com/watch*');
734734
export default defineContentScript({
735735
matches: ['*://*.youtube.com/*'],
736736
main(ctx) {
737-
ctx.locationWatcher.run();
738737
ctx.addEventListener(window, 'wxt:locationchange', ({ newUrl }) => {
739738
if (watchPattern.includes(newUrl)) mainWatch(ctx);
740739
});

0 commit comments

Comments
 (0)