diff --git a/jquery.oembed.js b/jquery.oembed.js index dc2d91f..6624907 100644 --- a/jquery.oembed.js +++ b/jquery.oembed.js @@ -81,7 +81,10 @@ } else { settings.onProviderNotFound.call(container, resourceURL); } - } + }, + error: function() { + settings.onError.call(container, resourceURL) + } }, settings.ajaxOptions || {}); $.ajax(ajaxopts);