We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f73662 commit c97ab1bCopy full SHA for c97ab1b
src/manager/main.ts
@@ -11,9 +11,11 @@ export class MainFileManager extends BaseFileManager {
11
}
12
13
patch(_fontChanged: boolean, content: () => string): Promisable<string | undefined> {
14
- return content().replace(
15
- new RegExp(entry, 'g'),
16
- `${JSON.stringify(config.electron).slice(1, -1)},${entry}`,
17
- )
+ if (Object.keys(config.electron).length) {
+ return content().replace(
+ new RegExp(entry, 'g'),
+ `${JSON.stringify(config.electron).slice(1, -1)},${entry}`,
18
+ )
19
+ }
20
21
0 commit comments