• Resolved steve7652

    (@steve7652)


    I have a page with several youtube playlist galleries embedded. On Safari, the ‘next’ button to scroll through the videos in the playlist doesn’t work. According to the Web Inspector console, there’s an error in ytprefs.min.js which reads SyntaxError: Unexpected token ‘=’. I took the contents of ytprefs.min.js and plugged it into a syntax validator and got the message ‘Error: Line 199: Unexpected token =’. Line 199 of the file is ‘e ||= d.data(“ep-src”);’

    Is this the reason for the next button not working and if so how would i solve it. I’ve tested the page on other browsers and both the next button works and the error isn’t present. The plugin is version 14.1.4.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author embedplus

    (@embedplus)

    Can you please provide a link to the page that has this issue? That syntax is valid in today’s browsers (more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment#browser_compatibility ) but an example on your site would be helpful.

    Thread Starter steve7652

    (@steve7652)

    The error is present on https://zeeko.ie/videogallery/

    Plugin Author embedplus

    (@embedplus)

    We took a look at the galleries on a couple of different Macs with Safari, and the next and prev buttons work correctly, and no errors are in the console.

    1. Do you still get the error in a private window?
    2. What version of Safari are you using?
    3. Do you have access to another Mac to test your galleries? If so, do you still get the error?

    Thread Starter steve7652

    (@steve7652)

    1. Yes, the issue is present in a private window
    2. We’re using Safari version Safari 13.1.2
    3. I don’t have another Mac, but I’ve tested using Safari on an iPad and it works.

    If the issue is present due to an older version of Safari, is there any workaround, as we can’t guarantee what browser version anyone using the site will be using?

    Plugin Author embedplus

    (@embedplus)

    Thanks, that info does help. We can make the next version more compatible with older browsers. It looks like in your situation, you’re unable to upgrade to Big Sur and above?

    Plugin Author embedplus

    (@embedplus)

    The latest version of the plugin should fix this issue. Please let us know if it works for you. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SyntaxError on Safari’ is closed to new replies.