Skip to content

Commit 4fdfa32

Browse files
committed
revert part of 4015
1 parent 92c09d7 commit 4fdfa32

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

js/block.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
DISABLEDFILLCOLOR, DISABLEDSTROKECOLOR, docById, DOUBLEFLAT,
2323
DOUBLESHARP, DRUMNAMES, EASTINDIANSOLFNOTES, EFFECTSNAMES,
2424
EXPANDBUTTON, FILTERTYPES, FLAT, getDrumName, getDrumSynthName,
25-
getModeNumbers, getNoiseName, getTemperament,
26-
getTemperamentKeys, getTemperamentsList, getTextWidth, hideDOMLabel, HIGHLIGHTSTROKECOLORS,
25+
getModeNumbers, getNoiseName, getTemperament, getTemperamentKeys,
26+
getTemperamentsList, getTextWidth, hideDOMLabel, HIGHLIGHTSTROKECOLORS,
2727
i18nSolfege, INVERTMODES, isCustomTemperament, last, MEDIASAFEAREA,
2828
NATURAL, NOISENAMES, NSYMBOLS, NUMBERBLOCKDEFAULT, OSCTYPES,
2929
PALETTEFILLCOLORS, PALETTEHIGHLIGHTCOLORS, PALETTESTROKECOLORS,
@@ -224,7 +224,7 @@ const _blockMakeBitmap = (data, callback, args) => {
224224
callback(bitmap, args);
225225
};
226226

227-
img.src = "data:image/svg+xml;base64," + window.btoa(COLLAPSEBUTTON);
227+
img.src = "data:image/svg+xml;base64," + window.btoa(base64Encode(data));
228228
};
229229

230230
/**
@@ -962,7 +962,7 @@ class Block {
962962

963963
if (this.image.search("xmlns") !== -1) {
964964
image.src =
965-
"data:image/svg+xml;base64," + window.btoa(this.image);
965+
"data:image/svg+xml;base64," + window.btoa(window.base64Encode(this.image));
966966
} else {
967967
image.src = this.image;
968968
}
@@ -1513,8 +1513,7 @@ class Block {
15131513
};
15141514

15151515
image.src =
1516-
"data:image/svg+xml;base64," +
1517-
window.btoa(COLLAPSEBUTTON);
1516+
"data:image/svg+xml;base64," + window.btoa(base64Encode(COLLAPSEBUTTON));
15181517
};
15191518

15201519
/**
@@ -1546,8 +1545,7 @@ class Block {
15461545
};
15471546

15481547
image.src =
1549-
"data:image/svg+xml;base64," +
1550-
window.btoa(EXPANDBUTTON);
1548+
"data:image/svg+xml;base64," + window.btoa(base64Encode(EXPANDBUTTON));
15511549
};
15521550

15531551
/**

0 commit comments

Comments
 (0)