mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +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