docs: Revert #2380 - locationWatcher (#2416)

This commit is contained in:
SmAsHeD
2026-06-30 12:55:39 -07:00
committed by GitHub
parent 9304319f55
commit d3983a603f
-1
View File
@@ -734,7 +734,6 @@ const watchPattern = new MatchPattern('*://*.youtube.com/watch*');
export default defineContentScript({
matches: ['*://*.youtube.com/*'],
main(ctx) {
ctx.locationWatcher.run();
ctx.addEventListener(window, 'wxt:locationchange', ({ newUrl }) => {
if (watchPattern.includes(newUrl)) mainWatch(ctx);
});