summaryrefslogtreecommitdiff
path: root/app/client/system/system.reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/system/system.reducer.js')
-rw-r--r--app/client/system/system.reducer.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js
index 387b454..5f9e4ac 100644
--- a/app/client/system/system.reducer.js
+++ b/app/client/system/system.reducer.js
@@ -9,8 +9,13 @@ const systemInitialState = {
site: {
name: 'loading',
},
+ env: {
+ env: process.env.NODE_ENV,
+ production: process.env.NODE_ENV === 'production',
+ development: process.env.NODE_ENV !== 'production',
+ },
app: {
- tool: localStorage.getItem('system.last_tool') || 'pix2pix',
+ tool: localStorage.getItem('system.last_tool') || 'pix2pixhd',
},
server: {
connected: false,
@@ -43,7 +48,7 @@ const systemInitialState = {
stderr: "",
}
-const modules = ['pix2pix','samplernn','pix2wav'].reduce((a,b) => (a[b]=b,a),{})
+const modules = ['pix2pix','pix2pixhd','pix2wav','samplernn','morph'].reduce((a,b) => (a[b]=b,a),{})
const systemReducer = (state = systemInitialState, action) => {
// console.log(action.type)