summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-11-15 18:26:08 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-11-26 17:39:19 +0100
commit5d53e0d5cebbb4ddc289ad41cf2d59d947ab6707 (patch)
treecafa1f8ac160fa3bb5d9f5273ee652d48ec33ada /core
parent07c0cda12d8ed739649fb7d760c10697be5c717f (diff)
downloadnextcloud-server-5d53e0d5cebbb4ddc289ad41cf2d59d947ab6707.tar.gz
nextcloud-server-5d53e0d5cebbb4ddc289ad41cf2d59d947ab6707.zip
all but the first parameter are introduced by &
Diffstat (limited to 'core')
-rw-r--r--core/js/eventsource.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/eventsource.js b/core/js/eventsource.js
index 45c63715a7e..6d5ba321f8b 100644
--- a/core/js/eventsource.js
+++ b/core/js/eventsource.js
@@ -42,7 +42,7 @@ OC.EventSource=function(src,data){
}
dataStr+='requesttoken='+OC.Request.Token;
if(!this.useFallBack && typeof EventSource !='undefined'){
- this.source=new EventSource(src+'?'+dataStr);
+ this.source=new EventSource(src+'&'+dataStr);
this.source.onmessage=function(e){
for(var i=0;i<this.typelessListeners.length;i++){
this.typelessListeners[i](JSON.parse(e.data));
@@ -54,7 +54,7 @@ OC.EventSource=function(src,data){
this.iframe=$('<iframe/>');
this.iframe.attr('id',iframeId);
this.iframe.hide();
- this.iframe.attr('src',src+'?fallback=true&fallback_id='+OC.EventSource.iframeCount+'&'+dataStr);
+ this.iframe.attr('src',src+'&fallback=true&fallback_id='+OC.EventSource.iframeCount+'&'+dataStr);
$('body').append(this.iframe);
this.useFallBack=true;
OC.EventSource.iframeCount++
@@ -90,7 +90,7 @@ OC.EventSource.prototype={
lastLength:0,//for fallback
listen:function(type,callback){
if(callback && callback.call){
-
+
if(type){
if(this.useFallBack){
if(!this.listeners[type]){