X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/00a4d9fe49f2118cd0fa798edfcc41fab3388025..c50ac64c3829d3b4b7b56e669b3b6bd0f13ddf16:/app/assets/javascripts/oauth.js?ds=sidebyside diff --git a/app/assets/javascripts/oauth.js b/app/assets/javascripts/oauth.js index 126d2d3eb..40f685cc7 100644 --- a/app/assets/javascripts/oauth.js +++ b/app/assets/javascripts/oauth.js @@ -2,7 +2,7 @@ //= require ohauth $.ajaxPrefilter(function(options, jqxhr) { - if (options.oauth) { + if (options.oauth && OSM.oauth_token) { var ohauth = window.ohauth; var url = options.url.replace(/\?$/, ""); var params = {