mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add isMobile key to env
This commit is contained in:
@@ -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
|
||||
};
|
||||
});
|
||||
|
||||
@@ -41,6 +41,7 @@ export function makeTestEnv(): Env {
|
||||
router,
|
||||
rpc: ajax.rpc,
|
||||
debug: false,
|
||||
isMobile: false,
|
||||
menus: []
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user