diff --git a/src/art/assistantArt.tw b/src/art/assistantArt.tw index 516de1971da39c8e56f476315e23ec13f7ea0327..511da7a1d5aa2fe1ee03d4b0018a416d90118220 100644 --- a/src/art/assistantArt.tw +++ b/src/art/assistantArt.tw @@ -119,12 +119,14 @@ window.assistantArt = function assistantArt(sizePlacement) { } } - if (sizePlacement === 3) { - fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`; - } else if (V.imageChoice === 1) { - fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`; - } else /* V.imageChoice === 0 */ { - fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`; + if (filename !== "") { + if (sizePlacement === 3) { + fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`; + } else if (V.imageChoice === 1) { + fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`; + } else /* V.imageChoice === 0 */ { + fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`; + } } } return fileName;