faro-web-sdk on Chrome extension app #220
Unanswered
marcelojfsilva
asked this question in
Q&A
Replies: 1 comment
-
Faro should work with Service Workers on the web out of the box[1], but Chrome service workers are a bit different to their web counterparts[2]. One difference is that they can't access the DOM or the window interface[3].
Cheers, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement the faro-web-sdk in the extension version of chrome. Although, Chrome extension app uses service worker to work the resources in the background.
When I add the faro-web-sdk to the project and run it, I get this error: "Uncaught ReferenceError: window is notdefined".
This error occurs because the object's window does not exist on service worker context. How can i solve this problem to implement Faro on chrome extension app?
Beta Was this translation helpful? Give feedback.
All reactions