refactor: replace Object.assign with spread syntax

This commit is contained in:
2026-10-29 01:17:10 +03:00
parent 05be4ab622
commit f417fcac73
8 changed files with 30 additions and 27 deletions
+5 -2
View File
@@ -121,9 +121,12 @@ export class Config {
}
afterUpdate() {
if (this.meta.mobileWidth === null) this.meta.mobileWidth = this.meta.width;
if (this.meta.mobileHeight === null && this.meta.mobileWidth)
if (this.meta.mobileWidth === null) {
this.meta.mobileWidth = this.meta.width;
}
if (this.meta.mobileHeight === null && this.meta.mobileWidth) {
this.meta.mobileHeight = Math.round(this.meta.mobileWidth / 2.222222222);
}
}
branch(params: ConfigParams) {