33import { blobToDataURL , e , filterNonNull } from 'lib/util' ;
44import { parsePreset } from 'SlubMediaPlayer/components/equalizer/preset' ;
55import DlfMediaPlugin from 'DlfMediaPlayer/DlfMediaPlugin' ;
6+ import eqPreviewImage from 'Assets/Images/equalizer-preview.png' ;
67import Equalizer from 'SlubMediaPlayer/components/equalizer/Equalizer' ;
78import EqualizerView from 'SlubMediaPlayer/components/equalizer/EqualizerView' ;
89import registerMultiIirProcessor from 'SlubMediaPlayer/components/equalizer/MultiIirProcessor.no-babel' ;
9- import eqPreviewImage from 'Assets/Images/equalizer-preview.png' ;
1010
1111/**
1212 * @typedef {import('DlfMediaPlayer/DlfMediaPlayer').default } DlfMediaPlayer
@@ -218,7 +218,7 @@ export default class EqualizerPlugin extends DlfMediaPlugin {
218218 */
219219 async resumeAudioContext ( ) {
220220 // Do NOT create or resume the AudioContext here synchronously.
221- // Instead show a resume UI and create/resume the context inside the user gesture handlers (pointerdown/keydown).
221+ // Instead show a resume UI and create/resume the context inside the user gesture handlers (pointerdown/keydown).
222222 // This avoids browsers blocking the action because it's not triggered by a user gesture.
223223
224224 // If we already have a context and it's running, immediately resolve.
@@ -230,16 +230,16 @@ export default class EqualizerPlugin extends DlfMediaPlugin {
230230
231231 // Show resume hint once - accessible button
232232 if ( ! this . resumeHintEl_ ) {
233- // outer wrapper that holds the blurred background and an overlaid button
233+ // Outer wrapper that holds the blurred background and an overlaid button
234234 const wrapper = e ( 'div' , { className : 'dlf-equalizer-resume' , role : 'group' , ariaLabel : this . env . t ( 'control.sound_tools.equalizer.resume_context' ) } , [ ] ) ;
235- // background element (will show via CSS var and be blurred)
235+ // Background element (will show via CSS var and be blurred)
236236 const bgDiv = e ( 'div' , { className : 'dlf-equalizer-resume-bg' , ariaHidden : 'true' } , [ ] ) ;
237- // visible button
237+ // Visible button
238238 const btn = e ( 'button' , { className : 'dlf-equalizer-resume-btn' , type : 'button' , ariaLabel : this . env . t ( 'control.sound_tools.equalizer.resume_context' ) } , [
239239 this . env . t ( 'control.sound_tools.equalizer.resume_context' ) ,
240240 ] ) ;
241241
242- // set preview image from public images folder
242+ // Set preview image from public images folder
243243 wrapper . style . setProperty ( '--equalizer-bg-url' , `url("${ eqPreviewImage } ")` ) ;
244244
245245 // Clicking either wrapper or btn should resume
0 commit comments