Skip to content

Commit

Permalink
Don't use Logical OR shorthand, to support older Node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanRonstrom committed Oct 9, 2024
1 parent ce8afe5 commit 8ba4bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/score/classes/score-page-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default class ScorePageItem {
for (let param in params) {
this[param] = params[param];
}
this.margin ||= 0;
this.width ||= 0;
this.height ||= 0;
this.margin || (this.margin = 0);
this.width || (this.width = 0);
this.height || (this.height = 0);
}

updatePosition() {
Expand Down

0 comments on commit 8ba4bb4

Please sign in to comment.