From e5730af6adb32a958e9599a2db53eb668d0c0742 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Mon, 25 Dec 2023 20:56:25 -0600 Subject: [PATCH] Use '??=' --- themes/default/assets/js/gamer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/assets/js/gamer.js b/themes/default/assets/js/gamer.js index 59c679c..a5da6df 100644 --- a/themes/default/assets/js/gamer.js +++ b/themes/default/assets/js/gamer.js @@ -62,7 +62,7 @@ let audioContext const playAudioBuffer = async (arrayBuffer) => { const AudioContext = globalThis.AudioContext if (AudioContext == null) return - audioContext = audioContext ?? new AudioContext() + audioContext ??= new AudioContext() const source = audioContext.createBufferSource() source.buffer = await audioContext.decodeAudioData(arrayBuffer.slice(0)) source.connect(audioContext.destination)