storycopter / storycopter-app

Storycopter App — Part of Storycopter, a new interactive documentary production suite for the Web.
https://storycopter.com
BSD 2-Clause "Simplified" License
11 stars 2 forks source link

Add a way to inline custom javascript (via Helmet). #76

Open piotrfonte opened 4 years ago

piotrfonte commented 4 years ago

Helmet can do:

        {/* multiple script elements */}
        <script src="http://include.com/pathtojs.js" type="text/javascript" />

        {/* inline script elements */}
        <script type="application/ld+json">{`
        {
            "@context": "http://schema.org"
        }
    `}</script>

Lets allow to provide custom js snippets in the app somehow (useful for adding analytics, among other things).