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
|
// configuration
|
||||||
debug: boolean;
|
debug: boolean;
|
||||||
|
isMobile: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -72,6 +73,7 @@ export const makeEnvironment = memoize(function(): Env {
|
|||||||
notifications,
|
notifications,
|
||||||
|
|
||||||
rpc: ajax.rpc,
|
rpc: ajax.rpc,
|
||||||
debug: false
|
debug: false,
|
||||||
|
isMobile: false
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export function makeTestEnv(): Env {
|
|||||||
router,
|
router,
|
||||||
rpc: ajax.rpc,
|
rpc: ajax.rpc,
|
||||||
debug: false,
|
debug: false,
|
||||||
|
isMobile: false,
|
||||||
menus: []
|
menus: []
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user