Skip to content

Commit

Permalink
refactor: use process type specific electron imports in default_app (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak authored and t57ser committed Jan 25, 2022
1 parent 79d8482 commit ff3e4e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion default_app/default_app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { app, dialog, BrowserWindow, shell, ipcMain } from 'electron';
import { shell } from 'electron/common';
import { app, dialog, BrowserWindow, ipcMain } from 'electron/main';
import * as path from 'path';
import * as url from 'url';

Expand Down
2 changes: 1 addition & 1 deletion default_app/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as electron from 'electron';
import * as electron from 'electron/main';

import * as fs from 'fs';
import * as path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion default_app/preload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ipcRenderer, contextBridge } from 'electron';
import { ipcRenderer, contextBridge } from 'electron/renderer';

const policy = window.trustedTypes.createPolicy('electron-default-app', {
// we trust the SVG contents
Expand Down

0 comments on commit ff3e4e7

Please sign in to comment.