mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 19:25:12 +03:00
fix(example/state): correct invoke method path to __TAURI__.core.invoke() (#9817)
This commit is contained in:
parent
fe90a2925e
commit
0c61784efb
@ -35,14 +35,14 @@
|
||||
}
|
||||
|
||||
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
|
||||
@ -52,7 +52,7 @@
|
||||
})
|
||||
|
||||
readBtn.addEventListener('click', () => {
|
||||
window.__TAURI__
|
||||
window.__TAURI__.core
|
||||
.invoke('db_read', {
|
||||
key: KEY
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user