@@ -106,7 +106,7 @@ Shows a question dialog with `Yes` and `No` buttons.
106
106
``` javascript
107
107
import { ask } from ' @tauri-apps/plugin-dialog' ;
108
108
// when using `"withGlobalTauri": true`, you may use
109
- // const { ask } = window.__TAURI_PLUGIN_DIALOG__ ;
109
+ // const { ask } = window.__TAURI__.dialog ;
110
110
111
111
// Create a Yes/No dialog
112
112
const answer = await ask (' This action cannot be reverted. Are you sure?' , {
@@ -127,7 +127,7 @@ Shows a question dialog with `Ok` and `Cancel` buttons.
127
127
``` javascript
128
128
import { confirm } from ' @tauri-apps/plugin-dialog' ;
129
129
// when using `"withGlobalTauri": true`, you may use
130
- // const { confirm } = window.__TAURI_PLUGIN_DIALOG__ ;
130
+ // const { confirm } = window.__TAURI__.dialog ;
131
131
132
132
// Creates a confirmation Ok/Cancel dialog
133
133
const confirmation = await confirm (
@@ -148,7 +148,7 @@ Shows a message dialog with an `Ok` button. Keep in mind that if the user closes
148
148
``` javascript
149
149
import { message } from ' @tauri-apps/plugin-dialog' ;
150
150
// when using `"withGlobalTauri": true`, you may use
151
- // const { message } = window.__TAURI_PLUGIN_DIALOG__ ;
151
+ // const { message } = window.__TAURI__.dialog ;
152
152
153
153
// Shows message
154
154
await message (' File not found' , { title: ' Tauri' , kind: ' error' });
@@ -165,7 +165,7 @@ The `multiple` option controls whether the dialog allows multiple selection or n
165
165
``` javascript
166
166
import { open } from ' @tauri-apps/plugin-dialog' ;
167
167
// when using `"withGlobalTauri": true`, you may use
168
- // const { open } = window.__TAURI_PLUGIN_DIALOG__ ;
168
+ // const { open } = window.__TAURI__.dialog ;
169
169
170
170
// Open a dialog
171
171
const file = await open ({
@@ -185,7 +185,7 @@ Open a file/directory save dialog.
185
185
``` javascript
186
186
import { save } from ' @tauri-apps/plugin-dialog' ;
187
187
// when using `"withGlobalTauri": true`, you may use
188
- // const { save } = window.__TAURI_PLUGIN_DIALOG__ ;
188
+ // const { save } = window.__TAURI__.dialog ;
189
189
190
190
// Prompt to save a 'My Filter' with extension .png or .jpeg
191
191
const path = await save ({
0 commit comments