Don't try and use OAuth if we don't have a token

This commit is contained in:
Tom Hughes 2013-03-28 14:29:38 +00:00
parent 00a4d9fe49
commit 84f7d322d0

View file

@ -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 = {