|
@@ -195,8 +195,8 @@ enum UserAttentionType {
|
|
* @return The current WebviewWindow.
|
|
* @return The current WebviewWindow.
|
|
*/
|
|
*/
|
|
function getCurrent(): WebviewWindow {
|
|
function getCurrent(): WebviewWindow {
|
|
- // @ts-expect-error
|
|
|
|
return new WebviewWindow(window.__TAURI__.__currentWindow.label, {
|
|
return new WebviewWindow(window.__TAURI__.__currentWindow.label, {
|
|
|
|
+ // @ts-expect-error
|
|
skip: true
|
|
skip: true
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -207,9 +207,12 @@ function getCurrent(): WebviewWindow {
|
|
* @return The list of WebviewWindow.
|
|
* @return The list of WebviewWindow.
|
|
*/
|
|
*/
|
|
function getAll(): WebviewWindow[] {
|
|
function getAll(): WebviewWindow[] {
|
|
- // @ts-expect-error
|
|
|
|
return window.__TAURI__.__windows.map(
|
|
return window.__TAURI__.__windows.map(
|
|
- (w) => new WebviewWindow(w, { skip: true })
|
|
|
|
|
|
+ (w) =>
|
|
|
|
+ new WebviewWindow(w.label, {
|
|
|
|
+ // @ts-expect-error
|
|
|
|
+ skip: true
|
|
|
|
+ })
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
|