Forced trailing slash on messageBus.baseUrl

This commit is contained in:
Clay Griffiths 2016-12-19 14:34:19 -07:00 committed by GitHub
parent 3256620d5d
commit d15bfc9880
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default {
messageBus.callbackInterval = siteSettings.anon_polling_interval; messageBus.callbackInterval = siteSettings.anon_polling_interval;
messageBus.backgroundCallbackInterval = siteSettings.background_polling_interval; messageBus.backgroundCallbackInterval = siteSettings.background_polling_interval;
messageBus.baseUrl = siteSettings.long_polling_base_url; messageBus.baseUrl = siteSettings.long_polling_base_url.replace(/\/$/, '') + '/';
if (messageBus.baseUrl !== '/') { if (messageBus.baseUrl !== '/') {
// zepto compatible, 1 param only // zepto compatible, 1 param only