Uncaught SyntaxError: Unexpected identifier
-
Hi. I installed the plugin, and found an Uncaught SyntaxError: Unexpected identifier.
I tracked it down to this line that it was inserting:
fluidvids.init({selector: ['iframe', 'object',]players: ['www.youtube.com', 'player.vimeo.com',]});
It is missing a comma after the selector closing ]
I found I could fix it in this file:
fluidvids/class-fluidvids.phpI changed this:
$html .= 'selector: [' . $this->esc_fluidvids( $selectors ) . ']';
to this
$html .= 'selector: [' . $this->esc_fluidvids( $selectors ) . '],';
and the error was fixed.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Uncaught SyntaxError: Unexpected identifier’ is closed to new replies.