refactor: replace Object.assign with spread syntax
This commit is contained in:
+5
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user