From 341ec5ce86d1220060f63d2681b6e8eae11ec488 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 23 Apr 2023 12:34:38 +0300 Subject: Use null coalescing op --- src/client/JsApi.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/JsApi.hx') 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 -- cgit v1.2.3