Skip to content

Commit 63dee97

Browse files
authored
docs: fix incorrect syntax for MatchPattern (#1148)
1 parent b121ed2 commit 63dee97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/essentials/content-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export default defineContentScript({
603603
matches: ['*://*.youtube.com/*'],
604604
main(ctx) {
605605
ctx.addEventListener(window, 'wxt:locationchange', ({ newUrl }) => {
606-
if (watchPattern.matches(newUrl)) mainWatch(ctx);
606+
if (watchPattern.includes(newUrl)) mainWatch(ctx);
607607
});
608608
},
609609
});

0 commit comments

Comments
 (0)