This commit is contained in:
Robin Ward 2013-11-12 11:25:27 -05:00
parent 7e1f433f27
commit a1a89d01c4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
if (u[u.length-1] === '/') { if (u[u.length-1] === '/') {
u = u.substring(0, u.length-1); u = u.substring(0, u.length-1);
} }
if (url.indexOf(u) != -1) return url; if (url.indexOf(u) !== -1) return url;
return u + url; return u + url;
}, },