Skip to content

content script inject #757

Closed Answered by aklinker1
xunziheng asked this question in Q&A
Jun 19, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Try window instead of document:

ctx.addEventListener(window, 'wxt:locationchange', ({ newUrl, oldUrl }) => {
console.log('Location changed:', newUrl.href, oldUrl.href);
});

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@aklinker1
Comment options

@xunziheng
Comment options

@xunziheng
Comment options

@aklinker1
Comment options

Answer selected by xunziheng
@xunziheng
Comment options

@aklinker1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants