WordPress.org

Forums

Vimeo Channel Gallery
Uncaught SyntaxError: Unexpected token # (1 post)

  1. hexalys
    Member
    Posted 2 years ago #

    Just to report a javascript bug, that needs fixing.

    On line 17:
    var data = JSON.parse(e.data);
    should read:
    var data = e.data;

    The data is already json.
    Trying to parse it twice throws an: "Uncaught SyntaxError: Unexpected token #" console error.

    You could also simplify by just doing:
    switch (e.data.event)

    Thanks

    http://wordpress.org/extend/plugins/vimeo-channel-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Vimeo Channel Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic