Skip to content

Commit

Permalink
fix(example/state): correct invoke method path to __TAURI__.core.invo…
Browse files Browse the repository at this point in the history
…ke() (#9817)
  • Loading branch information
rych-hysh committed May 19, 2024
1 parent fe90a29 commit 0c61784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/state/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ <h3>Database</h3>
}

incrementBtn.addEventListener('click', () => {
window.__TAURI__
window.__TAURI__.core
.invoke('increment_counter')
.then(updateResponse)
.catch(updateResponse)
})

storeBtn.addEventListener('click', () => {
window.__TAURI__
window.__TAURI__.core
.invoke('db_insert', {
key: KEY,
value: storeInput.value
Expand All @@ -52,7 +52,7 @@ <h3>Database</h3>
})

readBtn.addEventListener('click', () => {
window.__TAURI__
window.__TAURI__.core
.invoke('db_read', {
key: KEY
})
Expand Down

0 comments on commit 0c61784

Please sign in to comment.