File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
docs/guides/getting-started/setup Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ import logo from './logo.svg';
139139import './App.css';
140140
141141// access the pre-bundled global API functions
142- const { invoke } = window.__TAURI__
142+ const { invoke } = window.__TAURI__.tauri
143143
144144function App() {
145145 // now we can call our Command!
You can’t perform that action at this time.
0 commit comments