Error handling response: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.loadPage (chrome-extension://ofikakkdpjlipbnhbfloclbkcabdhjah/collections/ancestryfree.js:31:32)
at loadPage (chrome-extension://ofikakkdpjlipbnhbfloclbkcabdhjah/popup.js:379:32)
at chrome-extension://ofikakkdpjlipbnhbfloclbkcabdhjah/popup.js:780:17
Getting the following error:
When trying to find the issue - looking into file: https://github.com/jeffg2k/SmartCopy/blob/master/collections/ancestryfree.js#L31 I'm seeing that the
match[0]
is:so it stops in the middle of the line and indeed this is not a valid JSON.
parsing the entire page gives me:
I think the issue is with the
;
sign (this is expected to be the end of the line)Regex is a b**ch, I know...