X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=web%2Fxynt%2Fxynt-http-streaming-ifra.js;h=2450adf6ca9d565e4b21504709ef3ea7369399e7;hp=a854c053dc7175886ae9af4de14e3fd5d17cc985;hb=HEAD;hpb=f6e71b0a0d5a7248aa91e60006524b7b33200ed2 diff --git a/web/xynt/xynt-http-streaming-ifra.js b/web/xynt/xynt-http-streaming-ifra.js index a854c05..2450adf 100644 --- a/web/xynt/xynt-http-streaming-ifra.js +++ b/web/xynt/xynt-http-streaming-ifra.js @@ -1,4 +1,14 @@ +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@"; }