mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 11:43:06 +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', () => {
|
incrementBtn.addEventListener('click', () => {
|
||||||
window.__TAURI__
|
window.__TAURI__.core
|
||||||
.invoke('increment_counter')
|
.invoke('increment_counter')
|
||||||
.then(updateResponse)
|
.then(updateResponse)
|
||||||
.catch(updateResponse)
|
.catch(updateResponse)
|
||||||
})
|
})
|
||||||
|
|
||||||
storeBtn.addEventListener('click', () => {
|
storeBtn.addEventListener('click', () => {
|
||||||
window.__TAURI__
|
window.__TAURI__.core
|
||||||
.invoke('db_insert', {
|
.invoke('db_insert', {
|
||||||
key: KEY,
|
key: KEY,
|
||||||
value: storeInput.value
|
value: storeInput.value
|
||||||
@ -52,7 +52,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
readBtn.addEventListener('click', () => {
|
readBtn.addEventListener('click', () => {
|
||||||
window.__TAURI__
|
window.__TAURI__.core
|
||||||
.invoke('db_read', {
|
.invoke('db_read', {
|
||||||
key: KEY
|
key: KEY
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user