diff --git a/web/static/src/ts/env.ts b/web/static/src/ts/env.ts index e8d3a7d3..f62c0797 100644 --- a/web/static/src/ts/env.ts +++ b/web/static/src/ts/env.ts @@ -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 }; }); diff --git a/web/static/tests/helpers.ts b/web/static/tests/helpers.ts index 204520e7..4b3e79fc 100644 --- a/web/static/tests/helpers.ts +++ b/web/static/tests/helpers.ts @@ -41,6 +41,7 @@ export function makeTestEnv(): Env { router, rpc: ajax.rpc, debug: false, + isMobile: false, menus: [] }; }