mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(api/window): rename manager export to appWindow (#1342)
This commit is contained in:
@@ -426,7 +426,7 @@ class WindowManager {
|
||||
}
|
||||
}
|
||||
|
||||
const manager = new WindowManager()
|
||||
const appWindow = new WindowManager()
|
||||
|
||||
export interface WindowOptions {
|
||||
url?: 'app' | string
|
||||
@@ -447,4 +447,4 @@ export interface WindowOptions {
|
||||
alwaysOnTop?: boolean
|
||||
}
|
||||
|
||||
export { WebviewWindow, getCurrent, getAll, manager }
|
||||
export { WebviewWindow, getCurrent, getAll, appWindow }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { manager as windowManager } from "@tauri-apps/api/window";
|
||||
import { appWindow } from "@tauri-apps/api/window";
|
||||
import { open as openDialog } from '@tauri-apps/api/dialog'
|
||||
import { open } from "@tauri-apps/api/shell";
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// setPosition,
|
||||
setFullscreen,
|
||||
setIcon
|
||||
} = windowManager
|
||||
} = appWindow
|
||||
|
||||
let urlValue = "https://tauri.studio";
|
||||
let resizable = true
|
||||
|
||||
Reference in New Issue
Block a user