From 73fc9d90c23fa3b4d8aa544132a0ddf0c888682b Mon Sep 17 00:00:00 2001 From: William Toohey Date: Sat, 20 Feb 2016 23:28:40 +1000 Subject: [PATCH] Hotfix for Edge spam --- src/js/HuesEditor.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/js/HuesEditor.js b/src/js/HuesEditor.js index cb8562c..84fbc99 100644 --- a/src/js/HuesEditor.js +++ b/src/js/HuesEditor.js @@ -1269,11 +1269,13 @@ HuesEditor.prototype.drawWave = function() { }; HuesEditor.prototype.drawOneWave = function(wave, center, width) { - this.waveContext.drawImage(wave, - center - width/2, 0, // source x/y - width, WAVE_HEIGHT_PIXELS, // source width/height - 0, 0, // dest x/y - width, WAVE_HEIGHT_PIXELS); // dest width/height + try { + this.waveContext.drawImage(wave, + center - width/2, 0, // source x/y + width, WAVE_HEIGHT_PIXELS, // source width/height + 0, 0, // dest x/y + width, WAVE_HEIGHT_PIXELS); // dest width/height + } catch(e) {} }; HuesEditor.prototype.alert = function(msg) {