Parsing XML in background script with import or DOMParser #581
Unanswered
MinaroShikuchi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is a current limitation of MV3, but the new Offscreen API should allow you to do this. I believe it's in canary right now. I'd probably try using an NPM library that works with service workers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a chrome.alarm that fetch every 1 hour an URL.
The returned content is RSS as xml.
I would like to parse it with an external package or with the DOMParser.
I'm using vite and svelte in the vite.config.ts
With an external package I get
And with DOMParser since DOM is not available in background script
Do you have any idea how to achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions