piwik-react-router
piwik-react-router copied to clipboard
Auto inject script
As discussed in #48, injection fails if the document does not contain a script tag. (For example in test suites with jsdom)
This simply checks for presence of a script tag and appends a new script tag if none is found.
Coverage remained the same at 100.0% when pulling 4eaca033f3c984105c1ccd47dcfd75a9b05dbb74 on Klimakoenner:auto-inject-script into 9e618ad27c5c60e421d15d45607783c0c4513742 on joernroeder:master.
hey, thanks for your contribution and looking into this! i never felt comfortable with my hack and will review this pr within the next days. i was simply to busy in the past few weeks.
Hey! I would really appreciate if you could merge this fix. Can I help with this in any way? @joernroeder