-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
one file wasn't formatted with prettier
- Loading branch information
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import {app, BrowserWindow} from 'electron'; | ||
import contextMenu from 'electron-context-menu'; | ||
import unhandled from 'electron-unhandled'; | ||
import { app, BrowserWindow } from "electron"; | ||
import contextMenu from "electron-context-menu"; | ||
import unhandled from "electron-unhandled"; | ||
|
||
import packageJson from '../../package.json'; | ||
import packageJson from "../../package.json"; | ||
|
||
import {setupApp} from './app_setup'; | ||
import { setupApp } from "./app_setup"; | ||
|
||
function setupErrorHandling(): void { | ||
unhandled(); | ||
unhandled(); | ||
} | ||
|
||
// context menu (copy/paste/etc) | ||
function setupContextMenu(): void { | ||
// TODO: manually build this out and remove electron-context-menu | ||
contextMenu(); | ||
contextMenu(); | ||
} | ||
|
||
function setupUserModelId(): void { | ||
app.setAppUserModelId(packageJson.build.appId); | ||
app.setAppUserModelId(packageJson.build.appId); | ||
} | ||
|
||
export function init({win}: {win: BrowserWindow|null}): void { | ||
setupErrorHandling(); | ||
setupContextMenu(); | ||
setupUserModelId(); | ||
setupApp({win: win}); | ||
export function init({ win }: { win: BrowserWindow | null }): void { | ||
setupErrorHandling(); | ||
setupContextMenu(); | ||
setupUserModelId(); | ||
setupApp({ win: win }); | ||
} |