File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/mux-uploader/src Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,10 @@ class MuxUploaderFileSelectElement extends globalThis.HTMLElement {
157157 const locale = ( this . #uploaderEl as MuxUploaderElement ) ?. locale ;
158158 const text = t ( 'Upload a video' , locale ) ;
159159
160- if ( this . filePickerEl ) {
161- // Translate text only if it's the default button (inside the shadow DOM)
162- const buttonEl = this . shadowRoot ?. querySelector ( '#file-select' ) as HTMLButtonElement ;
163- if ( buttonEl ) {
164- buttonEl . textContent = text ;
165- }
160+ // Translate text only if it's the default button (inside the shadow DOM)
161+ const buttonEl = this . shadowRoot ?. querySelector ( '#file-select' ) as HTMLButtonElement ;
162+ if ( buttonEl ) {
163+ buttonEl . textContent = text ;
166164 }
167165 }
168166}
You can’t perform that action at this time.
0 commit comments