aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/preamble.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 4101fc72..e05e1e95 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -386,9 +386,7 @@ var unSign = {{{ unSign.toString() }}}
var reSign = {{{ reSign.toString() }}}
// Use console read if available, otherwise we are in a browser, use an XHR
-try {
- read;
-} catch(e) {
+if (!this['read']) {
this['read'] = function(url) {
// TODO: use mozResponseArrayBuffer/responseStream/etc. if available
var xhr = new XMLHttpRequest();