Skip to content

Commit 07c1192

Browse files
committed
removing ?? from js script
1 parent 9f33e64 commit 07c1192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/filters/glow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Phaser.Filter.Glow.prototype.constructor = Phaser.Filter.Glow;
1515
Phaser.Filter.Glow.prototype.key = "glow";
1616

1717
Phaser.Filter.Glow.prototype.init = function(distance, quality) {
18-
this.distance = distance ?? 5.0;
19-
this.quality_dist = 1 / (quality ?? 0.5) / this.distance;
18+
this.distance = distance ? distance : 5.0;
19+
this.quality_dist = 1 / (quality ? quality : 0.5) / this.distance;
2020

2121
this.fragmentSrc = `
2222
precision mediump float;

0 commit comments

Comments
 (0)