"scripts": {
"build:dll": "node ./bin/dependencies.js",
"postinstall": "npm run build:dll",
- "electron-dev": "DEV_URL=http://localhost:3000/configuration electron --inspect=5858 main.js .",
+ "electron-dev": "DEV_URL=http://localhost:3000/index.html electron --inspect=5858 main.js .",
"build": "NODE_ENV=production webpack --config webpack/webpack.app.js ",
"build-electron": "NODE_ENV=production MODE=electron webpack --config webpack/webpack.app.js ",
"lint": "eslint \"src/**\"",
if (configured) {
if (location.pathname === '/' ||
- location.pathname.indexOf('configuration') >= 0) {
+ location.pathname.indexOf('configuration') >= 0 || location.pathname.includes('index.html')) {
this.props.showRoot()
}
} else {
import { combineReducers } from 'redux'
-import { testnetUrl } from 'utility/environment'
+import { testnetUrl, mode } from 'utility/environment'
import moment from 'moment'
import { DeltaSampler } from 'utility/time'
configuredState = window.remote.getGlobal('fileExist')
}
export const configured = (state = configuredState, action) => {
- if (action.type == 'SET_CONFIGURED') {
+ if( mode === 'electron'){
+ if (action.type == 'SET_CONFIGURED') {
+ return true
+ }
+ return state
+ }else{
return true
}
- return state
}
const defaultLang = window.navigator.language.startsWith('zh') ? 'zh' : 'en'
basename: basename
})
+export const mode = process.env.MODE || 'browser'
export const pageSize = 25
export const UTXOpageSize = 4