Skip to content

Commit 8a7d1a9

Browse files
author
dompling
committed
fix
1 parent 8235f04 commit 8a7d1a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/birthday.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ class Widget extends DmYY {
303303
};
304304

305305
init = async () => {
306-
widthMode = this.settings.avatarWidth || widthMode;
307-
heightMode = this.settings.avatarHeight || heightMode;
308-
mainTextSize = this.settings.mainTextSize || mainTextSize;
306+
widthMode = Number(this.settings.avatarWidth) || widthMode;
307+
heightMode = Number(this.settings.avatarHeight) || heightMode;
308+
mainTextSize = Number(this.settings.mainTextSize) || mainTextSize;
309309

310310
await this.FILE_MGR.fileExistsExtra(this.LEFT_IMG_KEY);
311311
this.defaultData = {

0 commit comments

Comments
 (0)