mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Update dependencies & change to React-router v5
This commit is contained in:
@@ -6,6 +6,33 @@ const Config = require('electron-config')
|
||||
const config = new Config()
|
||||
const _ = require('lodash')
|
||||
|
||||
// set up some chrome extensions
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const {
|
||||
default: installExtension,
|
||||
REACT_DEVELOPER_TOOLS,
|
||||
REACT_PERF
|
||||
} = require('electron-devtools-installer')
|
||||
|
||||
require('electron-debug')({ showDevTools: false })
|
||||
|
||||
const ChromeLens = {
|
||||
// ID of the extension (https://chrome.google.com/webstore/detail/chromelens/idikgljglpfilbhaboonnpnnincjhjkd)
|
||||
id: 'idikgljglpfilbhaboonnpnnincjhjkd',
|
||||
electron: '>=1.2.1'
|
||||
}
|
||||
|
||||
const extensions = [REACT_DEVELOPER_TOOLS, REACT_PERF, ChromeLens]
|
||||
|
||||
for (const extension of extensions) {
|
||||
try {
|
||||
installExtension(extension)
|
||||
} catch (e) {
|
||||
console.error(`[ELECTRON] Extension installation failed`, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const windowSize = config.get('windowsize') || {
|
||||
x: null,
|
||||
y: null,
|
||||
|
||||
@@ -141,8 +141,8 @@
|
||||
</script>
|
||||
|
||||
<script src="../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js"></script>
|
||||
<script src="../node_modules/react/dist/react.min.js"></script>
|
||||
<script src="../node_modules/react-dom/dist/react-dom.min.js"></script>
|
||||
<script src="../node_modules/react/umd/react.development.js"></script>
|
||||
<script src="../node_modules/react-dom/umd/react-dom.development.js"></script>
|
||||
<script src="../node_modules/redux/dist/redux.min.js"></script>
|
||||
<script src="../node_modules/react-redux/dist/react-redux.min.js"></script>
|
||||
<script type='text/javascript'>
|
||||
|
||||
Reference in New Issue
Block a user