WordPress.org

Ready to get started?Download WordPress

Forums

WDP AJAX Comments
[resolved] wdp-ajax-comments breaks JavaScript in Firefox without Firebug (1 post)

  1. farmer paul
    Member
    Posted 3 years ago #

    If using Firefox and Firebug is disabled, then the object "console" is undefined. wdp-ajax-comments doesn't account for this. To fix this scenario, insert the following in ajax-comments.js at line 12, immediately before the "console.log" line:

    if( typeof( console ) != 'undefined' )

    This will cause Firefox (without Firebug) to resume processing JavaScript code after ajax-comments.js, instead of crashing the interpreter.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic