Hotfix for Edge spam

master
William Toohey 10 years ago
parent b65111f70f
commit 73fc9d90c2
  1. 12
      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) {

Loading…
Cancel
Save