mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove isElectron
This commit is contained in:
5 files changed
+4
-13
No files matched your search
Vendored
-6
@@ -60,12 +60,6 @@ interface ElectronShellAPI {
|
||||
}
|
||||
|
||||
interface ElectronAPI {
|
||||
/**
|
||||
* Flag indicating the app is running in Electron.
|
||||
* Always `true` when running in Electron.
|
||||
*/
|
||||
isElectron: boolean;
|
||||
|
||||
/**
|
||||
* Get the current platform.
|
||||
* @returns 'darwin' | 'win32' | 'linux'
|
||||
|
||||
@@ -9,9 +9,6 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
// App version
|
||||
version: () => ipcRenderer.invoke('get-app-version'),
|
||||
|
||||
// Flag to indicate we're running in Electron
|
||||
isElectron: true,
|
||||
|
||||
// Filesystem API - paths support tilde (~) expansion for home directory
|
||||
fs: {
|
||||
readFile: (path, encoding) => ipcRenderer.invoke('fs:readFile', path, encoding),
|
||||
|
||||
Reference in new issue
Block a user