• Resolved JapeNZ

    (@japenz)


    Hi there,
    I’m getting the following error:

    Uncaught SyntaxError: Unexpected identifier

    <script type="text/javascript">
            /**
             * Using Typekit's Web Font Loader to load OMGF's fonts asynchronously.
             *
             * @type {{custom: {urls: string[], families: string[]}}}
             */
            WebFontConfig = {
                custom: {
                    families: [
                                                                ''Open Sans':n3,n4,n6,n7,n8',
                                                                ''Dosis':n4',
                                        ],
                    urls: [
                        'https://www.comicbookshop.co.nz/wp-content/cache/omgf-webfonts/fonts.css'
                    ]
                }
            };
    
            (function (d) {
                var wf = d.createElement(
                    'script'),
                    s = d.scripts[0];
                wf.src = 'https://www.comicbookshop.co.nz/wp-content/plugins/host-webfonts-local/js/libraries/webfont.js';
                wf.async = true;
                wf.text = 'text/javascript';
                s.parentNode.insertBefore(
                    wf,
                    s
                );
            })(document);
        </script>

    This line is the apparent cause:

    ”Open Sans’:n3,n4,n6,n7,n8′,

    Any idea what might be causing it?

    Thanks for your help!

    Kind regards,
    JP

    • This topic was modified 6 years, 2 months ago by JapeNZ.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Unexpected identifier after update’ is closed to new replies.