diff --git a/jQuery.clientSideLogging.js b/jQuery.clientSideLogging.js index 7f30b7c..7218baa 100644 --- a/jQuery.clientSideLogging.js +++ b/jQuery.clientSideLogging.js @@ -138,6 +138,10 @@ data:_data }); } else { + if (what.indexOf(defaults.error_url) > 0) { + // Prevent trying to send error messages to non existing error_url + return; + } $.post(url+'format=text&' + defaults.query_var + '=' + what); } }; @@ -193,4 +197,4 @@ return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}"); } }; -})(jQuery); \ No newline at end of file +})(jQuery);