Comments (2)
After digging more into it, I have a theory.
The script i originally posted downloads a JS file from https://edge.fullstory.com/s/fs.js. Looking into the code, it reads values from the window. If i understand this correctly, the web worker does not have access to the main threads window which means when the script is being initialized the values ive defined are null.
If this is the case, is there a way to pass values from the window into the web worker? Using the forward
prop allows me to define the key, but not the value
If i'm unable to, then the only way i can think of is to self host https://edge.fullstory.com/s/fs.js and do a find/replace on portions that reference my global variables
from partytown.
Github issues is a place to explain a problem in detail, along with a reproduction case for maintainers. However, Github issues is not the best place to ask how-to questions since project contributors and maintainers donβt have the capacity to debug external websites and the many third-party scripts.
I think this question is better asked in Discord. Closing for now and hopefully you'll be able to get help there. Additionally, if you're able to find an answer to your question, a PR updating our docs content would be appreciated. Thanks.
from partytown.
Related Issues (20)
- [π] Google Tag Manager NextJS forward events coming as blank []
- [π] Cannot read property 'Error' of null
- [π] Proxy object could not be cloned HOT 1
- [π] Firefox: 404 partytown-sandbox-sw.html HOT 1
- [π] Firefox: Private Browsing for external Scripts HOT 1
- [π] GA4 sessions plummeted after migration of GTM to Partytown HOT 11
- [π] Objects and object properties can't be forwarded HOT 2
- [π]in statement is not reliable when running through partytown
- [π] resolveSendBeaconRequestParameters missing in docs and React types HOT 1
- [π]: forwarding gtm dataLayer.push breaks immediate dataLayer pushes HOT 3
- [π] page_view and on_load events are not firing in GA4
- [π] Intercom does not work with party town HOT 1
- [π]user_engagement is not working in GA4
- [π] AppsFlyer Smart Banner does not work
- [π] How to setup correctly partytown for astro.js HOT 1
- [π] GTM doesnt work HOT 1
- [π] "NoParty" error in Safari
- [π] Partytown Shopify Integration Failed to execute 'postMessage' on 'Worker'
- [π] Partytown Shopify Integration Failed to execute 'postMessage' on 'Worker'
- [π]batching not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from partytown.