mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-27 02:20:24 +12:00
lint
This commit is contained in:
parent
88b3d26f56
commit
b9cfa96446
|
@ -720,7 +720,7 @@ class FimFic2Epub extends EventEmitter {
|
|||
let fontSize = 150
|
||||
let width
|
||||
do {
|
||||
ctx.font = "bold " + fontSize + "px sans-serif"
|
||||
ctx.font = 'bold ' + fontSize + 'px sans-serif'
|
||||
width = ctx.measureText(title).width
|
||||
fontSize -= 5
|
||||
} while (width > canvas.width * 0.85)
|
||||
|
@ -728,7 +728,7 @@ class FimFic2Epub extends EventEmitter {
|
|||
ctx.fillText(title, canvas.width / 2, canvas.height * 0.2)
|
||||
fontSize = 75
|
||||
do {
|
||||
ctx.font = fontSize + "px sans-serif"
|
||||
ctx.font = fontSize + 'px sans-serif'
|
||||
width = ctx.measureText(author).width
|
||||
fontSize -= 5
|
||||
} while (width > canvas.width * 0.7)
|
||||
|
|
Loading…
Reference in a new issue