Skip to content

Commit

Permalink
Merge pull request #156 from ushahidi/feature/strip-backend-url-slash…
Browse files Browse the repository at this point in the history
…-705

Strip trailing slash from backendUrl
  • Loading branch information
rjmackay committed Apr 4, 2016
2 parents daa42e7 + 7aabf8c commit e4e87c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require('./user-profile/user-profile-module.js');
window.ushahidi = window.ushahidi || {};

// this 'environment variable' will be set within the gulpfile
var backendUrl = window.ushahidi.backendUrl = window.ushahidi.backendUrl || process.env.BACKEND_URL || 'http://ushahidi-backend',
var backendUrl = window.ushahidi.backendUrl = (window.ushahidi.backendUrl || process.env.BACKEND_URL || 'http://ushahidi-backend').replace(/\/$/, ''),
intercomAppId = window.ushahidi.intercomAppId = window.ushahidi.intercomAppId || process.env.INTERCOM_APP_ID || '',
apiUrl = window.ushahidi.apiUrl = backendUrl + '/api/v3',
claimedAnonymousScopes = [
Expand Down

0 comments on commit e4e87c6

Please sign in to comment.