aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/JsApi.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2023-04-23 12:34:38 +0300
committerRblSb <msrblsb@gmail.com>2023-04-23 12:34:38 +0300
commit341ec5ce86d1220060f63d2681b6e8eae11ec488 (patch)
treeaa232347348a0bdc75814bed30e057c8af00d237 /src/client/JsApi.hx
parentb25ebe9ce888b516c6478be2592052a7916a736f (diff)
Use null coalescing op
Diffstat (limited to 'src/client/JsApi.hx')
-rw-r--r--src/client/JsApi.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/JsApi.hx b/src/client/JsApi.hx
index 63b98c5..637878d 100644
--- a/src/client/JsApi.hx
+++ b/src/client/JsApi.hx
@@ -28,7 +28,7 @@ class JsApi {
static function initPluginsSpace():Void {
final w:Dynamic = window;
- if (w.synctube == null) w.synctube = {};
+ w.synctube ??= {};
}
@:expose
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage