Implemented core > invoke and convert_file_src.
This commit is contained in:
parent
d1b7948a4c
commit
85d92d3e3a
5 changed files with 73 additions and 3 deletions
12
src/core.js
Normal file
12
src/core.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// tauri/tooling/api/src/core.ts
|
||||
async function invoke(cmd, args = {}) {
|
||||
// NB: `options` ignored as not used here.
|
||||
return window.__TAURI_INTERNALS__.invoke(cmd, args)
|
||||
}
|
||||
function convertFileSrc(filePath, protocol = 'asset') {
|
||||
return window.__TAURI_INTERNALS__.convertFileSrc(filePath, protocol)
|
||||
}
|
||||
export {
|
||||
invoke,
|
||||
convertFileSrc
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue