diff --git a/js/block.js b/js/block.js index 996283fda..4d800f471 100644 --- a/js/block.js +++ b/js/block.js @@ -22,8 +22,8 @@ DISABLEDFILLCOLOR, DISABLEDSTROKECOLOR, docById, DOUBLEFLAT, DOUBLESHARP, DRUMNAMES, EASTINDIANSOLFNOTES, EFFECTSNAMES, EXPANDBUTTON, FILTERTYPES, FLAT, getDrumName, getDrumSynthName, - getModeNumbers, getNoiseName, getTemperament, - getTemperamentKeys, getTemperamentsList, getTextWidth, hideDOMLabel, HIGHLIGHTSTROKECOLORS, + getModeNumbers, getNoiseName, getTemperament, getTemperamentKeys, + getTemperamentsList, getTextWidth, hideDOMLabel, HIGHLIGHTSTROKECOLORS, i18nSolfege, INVERTMODES, isCustomTemperament, last, MEDIASAFEAREA, NATURAL, NOISENAMES, NSYMBOLS, NUMBERBLOCKDEFAULT, OSCTYPES, PALETTEFILLCOLORS, PALETTEHIGHLIGHTCOLORS, PALETTESTROKECOLORS, @@ -224,7 +224,7 @@ const _blockMakeBitmap = (data, callback, args) => { callback(bitmap, args); }; - img.src = "data:image/svg+xml;base64," + window.btoa(COLLAPSEBUTTON); + img.src = "data:image/svg+xml;base64," + window.btoa(base64Encode(data)); }; /** @@ -962,7 +962,7 @@ class Block { if (this.image.search("xmlns") !== -1) { image.src = - "data:image/svg+xml;base64," + window.btoa(this.image); + "data:image/svg+xml;base64," + window.btoa(window.base64Encode(this.image)); } else { image.src = this.image; } @@ -1513,8 +1513,7 @@ class Block { }; image.src = - "data:image/svg+xml;base64," + - window.btoa(COLLAPSEBUTTON); + "data:image/svg+xml;base64," + window.btoa(base64Encode(COLLAPSEBUTTON)); }; /** @@ -1546,8 +1545,7 @@ class Block { }; image.src = - "data:image/svg+xml;base64," + - window.btoa(EXPANDBUTTON); + "data:image/svg+xml;base64," + window.btoa(base64Encode(EXPANDBUTTON)); }; /**