Don't try and use OAuth if we don't have a token
This commit is contained in:
parent
00a4d9fe49
commit
84f7d322d0
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue