X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=web%2Fxynt%2Fxynt-http-streaming-ifra.js;h=2450adf6ca9d565e4b21504709ef3ea7369399e7;hp=7b4124f606ca503a665326061fab08f4140d356b;hb=540be90267727a5511bf06d115de5e0308298144;hpb=c5065b5269f3110366b2099c633c3f2ccc2928da diff --git a/web/xynt/xynt-http-streaming-ifra.js b/web/xynt/xynt-http-streaming-ifra.js index 7b4124f..2450adf 100644 --- a/web/xynt/xynt-http-streaming-ifra.js +++ b/web/xynt/xynt-http-streaming-ifra.js @@ -1,6 +1,14 @@ -var ctx_new = ""; - +var ctx_new = ""; +var ctx_old_len = 0; function push(s) { + // FIXME: remove this barbarian log + window.parent.console.log("ctx_new.length: "+ctx_new.length+" ctx_old_len: "+ctx_old_len); + if (ctx_new.length == ctx_old_len && ctx_old_len > 0) { + // FIXME: remove this barbarian log + window.parent.console.log("NOW clean"); + ctx_new = ""; + ctx_old_len = 0; + } if (s != null) { ctx_new += "@BEGIN@"+s+"@END@"; }