mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
keep the import, just handle undefined
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
let app: Electron.App | undefined;
|
||||
try {
|
||||
app = require('electron').app;
|
||||
} catch {
|
||||
// Not running inside Electron (e.g. tests importing goosed.ts)
|
||||
}
|
||||
import { app } from 'electron';
|
||||
|
||||
interface DistroConfig {
|
||||
env?: Record<string, string>;
|
||||
|
||||
Reference in New Issue
Block a user