Skip to content

Commit 5def810

Browse files
authored
chore: import invoke from tauri module instead of root (tauri-apps#871)
1 parent 7b4070d commit 5def810

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/guides/getting-started/setup/html-css-js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You can now modify your `index.html` file to call your Command:
112112
// highlight-start
113113
<script>
114114
// access the pre-bundled global API functions
115-
const { invoke } = window.__TAURI__
115+
const { invoke } = window.__TAURI__.tauri
116116

117117
// now we can call our Command!
118118
// Right-click the application background and open the developer tools.

docs/guides/getting-started/setup/integrate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ import logo from './logo.svg';
139139
import './App.css';
140140

141141
// access the pre-bundled global API functions
142-
const { invoke } = window.__TAURI__
142+
const { invoke } = window.__TAURI__.tauri
143143

144144
function App() {
145145
// now we can call our Command!

0 commit comments

Comments
 (0)