Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please make the script property can accept a full url #172

Open
kisekied opened this issue Mar 29, 2023 · 1 comment
Open

Please make the script property can accept a full url #172

kisekied opened this issue Mar 29, 2023 · 1 comment

Comments

@kisekied
Copy link

Hello!

I'm integrating the fullstory for chrome extension.

However, the chrome extension v3 do not allow remote script, so I copied the script into the project, and set the script as below:

 FullStory.init({
      ...
      script: chrome.runtime.getURL("/packs/js/fullstory_script.js"),
    })

But when I test it, it shows

<script async="" crossorigin="anonymous" src="https://chrome-extension://anbdemkhcaojehdafeofalnidphdnnbm/packs/js/fullstory_script.js"></script>

I checked the source code and find the src url is created by simply combine "https://" and the custom script text.

Could you please allow set a full url for the script?

By the way, for the chrome extension v3, we need to bundle the script locally so it is good to have a npm package for it.

Thanks!

@mantasastra
Copy link

mantasastra commented Jul 11, 2024

+1 on this - we are also trying to integrate fullstory into the Chrome extension and were using the same approach by using a local version of the fs script. Full URLs would help us solve this.

Are there any plans to prioritize this soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants