]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change the requesttoken back to OC.EventSource.requesttoken
authorLukas Reschke <lukas@statuscode.ch>
Wed, 31 Oct 2012 17:43:16 +0000 (18:43 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 31 Oct 2012 17:43:16 +0000 (18:43 +0100)
core/js/eventsource.js

index 45c63715a7e85d2ff2912fac82cf3df089b5e5cd..e3ad7e3a671fc54e2d67c41ab80d99631c2e77db 100644 (file)
@@ -40,7 +40,7 @@ OC.EventSource=function(src,data){
                        dataStr+=name+'='+encodeURIComponent(data[name])+'&';
                }
        }
-       dataStr+='requesttoken='+OC.Request.Token;
+       dataStr+='requesttoken='+OC.EventSource.requesttoken;
        if(!this.useFallBack && typeof EventSource !='undefined'){
                this.source=new EventSource(src+'?'+dataStr);
                this.source.onmessage=function(e){