File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import reloadApp from "./utils/reloadApp.js";
11
11
import createSocketURL from "./utils/createSocketURL.js" ;
12
12
import { isProgressSupported , defineProgressElement } from "./progress.js" ;
13
13
14
- defineProgressElement ( ) ;
15
-
16
14
/**
17
15
* @typedef {Object } OverlayOptions
18
16
* @property {boolean | (error: Error) => boolean } [warnings]
@@ -243,6 +241,7 @@ const onSocketMessage = {
243
241
if ( typeof options . progress === "string" ) {
244
242
let progress = document . querySelector ( "wds-progress" ) ;
245
243
if ( ! progress ) {
244
+ defineProgressElement ( ) ;
246
245
progress = document . createElement ( "wds-progress" ) ;
247
246
document . body . appendChild ( progress ) ;
248
247
}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export function isProgressSupported() {
197
197
}
198
198
199
199
export function defineProgressElement ( ) {
200
- if ( ! isProgressSupported ( ) || customElements . get ( "wds-progress" ) ) {
200
+ if ( customElements . get ( "wds-progress" ) ) {
201
201
return ;
202
202
}
203
203
Original file line number Diff line number Diff line change @@ -732,7 +732,8 @@ declare class Server<
732
732
ClientProgress : {
733
733
description : string ;
734
734
link : string ;
735
- type : string ;
735
+ type : string [ ] ;
736
+ enum : ( string | boolean ) [ ] ;
736
737
cli : {
737
738
negatedDescription : string ;
738
739
} ;
You can’t perform that action at this time.
0 commit comments