mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:57:16 +00:00
fix(api.js): wrong command for isAbsolute (#11835)
This commit is contained in:
parent
d6bed20a0e
commit
a6e84f7d2c
5
.changes/path-plugin-is-absolute.md
Normal file
5
.changes/path-plugin-is-absolute.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tauri-apps/api": "patch:bug"
|
||||
---
|
||||
|
||||
Fix error where using `isAbsolute` would return `Command not found`.
|
||||
@ -661,7 +661,7 @@ async function basename(path: string, ext?: string): Promise<string> {
|
||||
* @since 1.0.0
|
||||
*/
|
||||
async function isAbsolute(path: string): Promise<boolean> {
|
||||
return invoke('plugin:path|isAbsolute', { path })
|
||||
return invoke('plugin:path|is_absolute', { path })
|
||||
}
|
||||
|
||||
export {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user