Skip to content

Commit 075296a

Browse files
committed
1.1.3: upgrade to electron 12
1 parent d051b77 commit 075296a

File tree

12 files changed

+29
-51
lines changed

12 files changed

+29
-51
lines changed

app/components/import/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { observable, computed, action, autorun, toJS } from 'mobx';
2-
const { dialog } = require('electron').remote;
2+
const { dialog } = require('@electron/remote');
33
import { errorMsg } from '#util/dialog';
44
import { removeBackground } from './remove-background';
55
import { colorMatch } from './color-match';

app/components/project/object-menu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { remote } from 'electron';
21
import { toJS } from 'mobx';
32
import { uuid } from '#util/uuid';
43
import { workspace } from '#store/workspace';
5-
const { getCurrentWindow, Menu, MenuItem } = remote;
4+
const { getCurrentWindow, Menu, MenuItem } = require('@electron/remote');
65

76
export default function(node) {
87
const menu = new Menu();

app/components/ui/file/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { observer } from 'mobx-react';
33
import { workspace } from '#store/workspace';
44
import { Input } from '#ui';
55

6-
const { dialog } = require('electron').remote;
6+
const { dialog } = require('@electron/remote');
77

88
@observer
99
export class File extends Component {

app/controls/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const commands = [
4343
{
4444
map: 'f12', name: 'DevTools', hidden: true,
4545
func: () => {
46-
require('electron').remote
46+
require('@electron/remote')
4747
.getCurrentWindow()
4848
.webContents
4949
.toggleDevTools();

app/formats/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { environment } from '#store/environment';
2-
const { dialog } = require('electron').remote;
2+
const { dialog } = require('@electron/remote');
33
import { writeFile } from 'fs';
44
import { errorMsg } from '#util/dialog';
55
import { colorMatch } from '#components/import/color-match';

app/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import React from 'react';
88
import { render } from 'react-dom';
99
import { Layout } from '#components/layout';
1010
import './components/import';
11-
import './util/debugger';
1211

1312
render(
1413
<Layout/>,

app/util/debugger.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/util/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { dialog } = require('electron').remote;
1+
const { dialog } = require('@electron/remote');
22

33
export function errorMsg(title, message) {
44
dialog.showMessageBox({

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.1.2",
2+
"version": "1.1.3",
33
"scripts": {
44
"start": "electron ./static --dev"
55
},
@@ -9,8 +9,9 @@
99
"@babel/plugin-proposal-decorators": "^7.8.3",
1010
"@babel/preset-env": "^7.9.0",
1111
"@babel/preset-react": "^7.9.4",
12+
"@electron/remote": "^1.1.0",
1213
"babel-loader": "^8.1.0",
13-
"electron": "^8.5.5",
14+
"electron": "^12.0.2",
1415
"node-sass": "git+https://github.com/TomiBelan/node-sass-wasm#built/master",
1516
"raw-loader": "^4.0.0",
1617
"sass-variables-loader": "^0.1.3",
@@ -26,7 +27,6 @@
2627
"d3-dispatch": "^1.0.3",
2728
"d3-drag": "^1.2.5",
2829
"d3-selection": "^1.1.0",
29-
"electron-unhandled": "^3.0.2",
3030
"flexlayout-react": "^0.4.5",
3131
"lodash": "^4.17.19",
3232
"marked": "^0.3.6",

static/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head>
55
<title>Flex 2</title>
66
<link rel="stylesheet" href="bundles/main.css" type="text/css" charset="utf-8">
7+
<script>if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;</script>
78
</head>
89
<body>
910
<img src="images/nuke.png" class="nuke"/>

0 commit comments

Comments
 (0)