Skip to content
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