aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js
diff options
context:
space:
mode:
authorPeter Wu2014-07-26 11:56:51 +0200
committerPim van den Berg2014-08-02 12:29:44 +0200
commit5b32a546e396703b23bfe7f979116e7e9d805252 (patch)
treed059ddc0d4b0ec2fcb51f28efc9bfcc8b0506e7c /js
parentjsrrdgraph: Performance fix (diff)
downloadapt-panopticon_cgp-5b32a546e396703b23bfe7f979116e7e9d805252.zip
apt-panopticon_cgp-5b32a546e396703b23bfe7f979116e7e9d805252.tar.gz
apt-panopticon_cgp-5b32a546e396703b23bfe7f979116e7e9d805252.tar.bz2
apt-panopticon_cgp-5b32a546e396703b23bfe7f979116e7e9d805252.tar.xz
jsrrdgraph: document.write is for dinosaurs
Use conditional compilation for the antique browsers that provide VBScript support.
Diffstat (limited to 'js')
-rw-r--r--js/binaryXHR.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/binaryXHR.js b/js/binaryXHR.js
index 6749273..ef8478c 100644
--- a/js/binaryXHR.js
+++ b/js/binaryXHR.js
@@ -181,6 +181,8 @@ function BinaryFile(strData, iDataOffset, iDataLength) {
181} 181}
182 182
183 183
184// Use document.write only for stone-age browsers.
185/*@cc on
184document.write( 186document.write(
185 "<script type='text/vbscript'>\r\n" 187 "<script type='text/vbscript'>\r\n"
186 + "Function IEBinary_getByteAt(strBinary, iOffset)\r\n" 188 + "Function IEBinary_getByteAt(strBinary, iOffset)\r\n"
@@ -191,7 +193,7 @@ document.write(
191 + "End Function\r\n" 193 + "End Function\r\n"
192 + "</script>\r\n" 194 + "</script>\r\n"
193); 195);
194 196@*/
195 197
196 198
197// =============================================================== 199// ===============================================================