X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Ftransports.phh;h=3de2197fc5fc6586331b55b3d1850d139742210b;hb=f705d38215e4db73d23542d66b3c057424d28aab;hp=92f11b4a957c0b40a53d1aa7bd54517770a58f86;hpb=5038893a7b944417e7777426f145e2b87f37f4c1;p=brisk.git diff --git a/web/Obj/transports.phh b/web/Obj/transports.phh index 92f11b4..3de2197 100644 --- a/web/Obj/transports.phh +++ b/web/Obj/transports.phh @@ -47,7 +47,7 @@ class Transport_xhr { function init($enc, &$header_out, $init_string, $base, $step) { - $ret = $init_string; + $ret = sprintf("@BEGIN@ /* %s */ @END@", $init_string); if ($enc != 'plain') $header_out['Content-Encoding'] = $enc; $header_out['Cache-Control'] = 'no-cache, must-revalidate'; // HTTP/1.1 @@ -92,7 +92,7 @@ var xynt_streaming = \"ready\";", $base, $base); if ($step > 0) $ret .= sprintf("last_clean = %d;\n", ($step-1)); $ret .= sprintf(" -window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming.reload(); } }; +window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming.transp.stopped = true; } }; ");