fix padStart() in <Preview>
This commit is contained in:
parent
4589c52349
commit
b80d408287
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ export default {
|
|||
const {config: {qft}} = this;
|
||||
if (qft == null) return;
|
||||
const {x, y, fontSize, fgRGB, fgA, fgRGB2, fgA2, bgRGB, bgA, width} = qft;
|
||||
const i2s = (rgb, a) => '#'+rgb.toString(16).padStart('0', 6)+a.toString(16).padStart('0', 2);
|
||||
const i2s = (rgb, a) => '#'+rgb.toString(16).padStart(6, '0')+a.toString(16).padStart(2, '0');
|
||||
const bg = i2s(bgRGB, bgA);
|
||||
const fg1 = i2s(fgRGB, fgA);
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue