question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Injection of "external_api.js" gives an error if current URL has hash

See original GitHub issue
  1. Go to http://example.com/#foo
  2. Inject external_api.js
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://meet.jit.si/external_api.js';
document.head.appendChild(script);

->

Failed to parse URL parameter value: undefined SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at parseURLParams.js:36
    at Array.forEach (<anonymous>)
    at parseURLParams.js:22
    at Object.<anonymous> (parseURLParams.js:49)
    at n (bootstrap f6c4a3330d78cd454e30:19)
    at Object.<anonymous> (index.js:3)
    at Object.<anonymous> (external_api.js:693)
    at n (bootstrap f6c4a3330d78cd454e30:19)
    at Object.<anonymous> (index.js:3)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Dec 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

0reactions
duerrsimoncommented, Apr 28, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

URL parameters in urls with hashtag lead to errors in helpers.js
Description: In a vue.js powered app using the vue router in hash mode ... Injection of "external_api.js" gives an error if current URL...
Read more >
How can you check for a #hash in a URL using JavaScript?
I have some jQuery/JavaScript code that I want to run only when there is a hash ( # ) anchor link in a...
Read more >
URL.hash - Web APIs - MDN Web Docs
The hash property of the URL interface is a string containing a '#' followed by the fragment identifier of the URL.
Read more >
How to load a #hash fragment to an anchor name in react ...
A hash fragment in the URL (i.e. www.mypage.com/article#fragment) to the anchor name is the value of either the name or id attribute when...
Read more >
How To Secure Node.js Applications with a Content Security ...
Attackers use this exploit to maliciously inject scripts to the page, which are then executed because the browser has no way of determining...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found