feat(core): updated to new browser engine
This commit is contained in:
parent
23e2871669
commit
a43f7431dd
9841
package-lock.json
generated
9841
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@ -118,9 +118,9 @@
|
||||
"compare-versions": "^3.1.0",
|
||||
"debug": "^3.1.0",
|
||||
"detect-onebyte-encoding": "^1.0.2",
|
||||
"electron-context-menu": "^0.9.1",
|
||||
"electron-log": "^2.2.14",
|
||||
"electron-updater": "^2.21.10",
|
||||
"electron-context-menu": "^0.10.1",
|
||||
"electron-log": "^2.2.17",
|
||||
"electron-updater": "^4.0.5",
|
||||
"fs-jetpack": "^1.2.0",
|
||||
"glob": "^7.1.2",
|
||||
"google": "^2.1.0",
|
||||
@ -142,8 +142,7 @@
|
||||
"react-dom": "^16.3.2",
|
||||
"react-input-range": "^1.3.0",
|
||||
"react-markdown": "^3.1.5",
|
||||
"react-tap-event-plugin": "^3.0.2",
|
||||
"simple-encryptor": "^1.2.0",
|
||||
"simple-encryptor": "^2.0.0",
|
||||
"stun": "^1.1.0",
|
||||
"webtorrent": "github:DEgITx/webtorrent"
|
||||
},
|
||||
@ -161,8 +160,8 @@
|
||||
"chai": "^4.1.2",
|
||||
"copy-webpack-plugin": "^4.5.2",
|
||||
"css-loader": "^0.28.11",
|
||||
"electron": "2.0.11",
|
||||
"electron-builder": "20.14.7",
|
||||
"electron": "3.0.10",
|
||||
"electron-builder": "20.38.2",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-plugin-react": "^7.9.1",
|
||||
"express": "^4.16.3",
|
||||
@ -172,7 +171,7 @@
|
||||
"mocha": "^5.2.0",
|
||||
"socket.io": "^2.1.0",
|
||||
"source-map-support": "^0.5.0",
|
||||
"spectron": "^3.8.0",
|
||||
"spectron": "^5.0.0",
|
||||
"style-loader": "^0.21.0",
|
||||
"sw-precache-webpack-plugin": "^0.11.5",
|
||||
"url-loader": "^1.0.1",
|
||||
|
@ -3,7 +3,6 @@ import './app.css';
|
||||
import './router';
|
||||
import PagesPie from './pages-pie.js';
|
||||
//import registerServiceWorker from './registerServiceWorker';
|
||||
import injectTapEventPlugin from 'react-tap-event-plugin';
|
||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
||||
import __, { changeLanguage } from './translation'
|
||||
|
||||
@ -73,11 +72,6 @@ else
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Needed for onTouchTap
|
||||
// http://stackoverflow.com/a/34015469/988941
|
||||
injectTapEventPlugin();
|
||||
|
||||
//registerServiceWorker();
|
||||
|
||||
// override log to main process
|
||||
|
@ -126,7 +126,12 @@ if(portative)
|
||||
// handle promise rejections
|
||||
process.on('unhandledRejection', r => logTE('system', 'Rejection:', r));
|
||||
|
||||
const shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
|
||||
const gotTheLock = app.requestSingleInstanceLock()
|
||||
if (!gotTheLock) {
|
||||
logT('app', 'closed because of second application')
|
||||
app.exit(0);
|
||||
} else {
|
||||
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
||||
// Someone tried to run a second instance, we should focus our window.
|
||||
logT('app', 'openned second application, just focus this one')
|
||||
if (mainWindow) {
|
||||
@ -134,11 +139,7 @@ const shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory
|
||||
mainWindow.restore();
|
||||
mainWindow.focus();
|
||||
}
|
||||
});
|
||||
|
||||
if (shouldQuit) {
|
||||
logT('app', 'closed because of second application')
|
||||
app.exit(0);
|
||||
})
|
||||
}
|
||||
|
||||
// log autoupdate
|
||||
|
Loading…
Reference in New Issue
Block a user