add isMobile key to env

This commit is contained in:
Géry Debongnie
2019-01-30 12:10:08 +01:00
parent c0c7414b18
commit 68973b3321
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -32,6 +32,7 @@ export interface Env extends WEnv {
// configuration
debug: boolean;
isMobile: boolean;
}
//------------------------------------------------------------------------------
@@ -72,6 +73,7 @@ export const makeEnvironment = memoize(function(): Env {
notifications,
rpc: ajax.rpc,
debug: false
debug: false,
isMobile: false
};
});
+1
View File
@@ -41,6 +41,7 @@ export function makeTestEnv(): Env {
router,
rpc: ajax.rpc,
debug: false,
isMobile: false,
menus: []
};
}