Skip to content

Commit

Permalink
revert part of 4015
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Sep 28, 2024
1 parent 92c09d7 commit 4fdfa32
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));
};

/**
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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));
};

/**
Expand Down Expand Up @@ -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));
};

/**
Expand Down

0 comments on commit 4fdfa32

Please sign in to comment.