diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-08-30 08:32:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-08-30 08:32:39 +0800 |
commit | b36b7603384309a7ef714e269818775bab02e52c (patch) | |
tree | 0c41f2683b81f1438b7cb8c532e224a995d0ba5e | |
parent | 6838027c6587e41b996dd1cec201980ffd96af08 (diff) | |
download | tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar.gz tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar.bz2 tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar.lz tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar.xz tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.tar.zst tangerine-wallet-browser-b36b7603384309a7ef714e269818775bab02e52c.zip |
Fix console.error references
Microsoft edge does not support console.error.bind, nor is that call necessary here.
-rw-r--r-- | app/scripts/chromereload.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/chromereload.js b/app/scripts/chromereload.js index 88333ba8a..f0bae403c 100644 --- a/app/scripts/chromereload.js +++ b/app/scripts/chromereload.js @@ -324,13 +324,13 @@ window.LiveReloadOptions = { host: 'localhost' }; this.pluginIdentifiers = {} this.console = this.window.console && this.window.console.log && this.window.console.error ? this.window.location.href.match(/LR-verbose/) ? this.window.console : { log: function () {}, - error: this.window.console.error.bind(this.window.console), + error: console.error, } : { log: function () {}, error: function () {}, } if (!(this.WebSocket = this.window.WebSocket || this.window.MozWebSocket)) { - this.console.error('LiveReload disabled because the browser does not seem to support web sockets') + console.error('LiveReload disabled because the browser does not seem to support web sockets') return } if ('LiveReloadOptions' in window) { @@ -344,7 +344,7 @@ window.LiveReloadOptions = { host: 'localhost' }; } else { this.options = Options.extract(this.window.document) if (!this.options) { - this.console.error('LiveReload disabled because it could not find its own <SCRIPT> tag') + console.error('LiveReload disabled because it could not find its own <SCRIPT> tag') return } } |