Build correct URLs for chat popups

This commit is contained in:
Dmitriy Simushev 2015-02-03 16:19:01 +00:00
parent 933ced4575
commit 0dca0bb57d

View File

@ -283,7 +283,7 @@ var Mibew = Mibew || {};
}
return this.url
+ ((this.url.indexOf('?') === false) ? '?' : '&') + 'url=' + escape(href)
+ ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + escape(href)
+ '&referrer=' + escape(referrer);
}