mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
minor refactor, cleanup
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
// Shim for remote.shell
|
||||
// Obsidian uses: openExternal, openPath, showItemInFolder
|
||||
|
||||
export const shellShim = {
|
||||
openExternal(url) {
|
||||
window.open(url, '_blank');
|
||||
window.open(url, "_blank");
|
||||
return Promise.resolve();
|
||||
},
|
||||
|
||||
openPath(filePath) {
|
||||
// TODO: could trigger a server-side download or preview
|
||||
console.log('[shim:shell] openPath (stub):', filePath);
|
||||
return Promise.resolve('');
|
||||
console.log("[shim:shell] openPath (stub):", filePath);
|
||||
return Promise.resolve("");
|
||||
},
|
||||
|
||||
showItemInFolder(filePath) {
|
||||
// No OS file manager in browser context
|
||||
console.log('[shim:shell] showItemInFolder (stub):', filePath);
|
||||
console.log("[shim:shell] showItemInFolder (stub):", filePath);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user