mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Handle Text node without font specified (#938)
This commit is contained in:
parent
008cad4256
commit
7ae87d301c
1 changed files with 5 additions and 2 deletions
|
|
@ -566,8 +566,11 @@ function Text({ makiObject }) {
|
|||
// display is actually a keyword that is looked up in some sort of map
|
||||
// e.g. songname, time
|
||||
const nodeText = display;
|
||||
const js_attributes = makiObject.js_fontLookup(font.toLowerCase());
|
||||
const fontFamily = js_attributes == null ? null : js_attributes.fontFamily;
|
||||
let fontFamily;
|
||||
if (font) {
|
||||
const js_attributes = makiObject.js_fontLookup(font.toLowerCase());
|
||||
fontFamily = js_attributes == null ? null : js_attributes.fontFamily;
|
||||
}
|
||||
const style = {
|
||||
position: "absolute",
|
||||
userSelect: "none",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue