tauri-sys/src/core.js
2024-07-01 10:37:43 +02:00

12 lines
336 B
JavaScript

// 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
}