fix(core): update
This commit is contained in:
parent
16a213f536
commit
dfb9175613
@ -7,7 +7,7 @@ export const phone = 340;
|
|||||||
|
|
||||||
export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
|
export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
|
||||||
|
|
||||||
export const getEnvironment = async (): Promise<TViewport> => {
|
export const getEnvironment = (): TViewport => {
|
||||||
if (globalThis.deesDomTools && globalThis.deesDomTools.domToolsStatePart.getState().virtualViewport) {
|
if (globalThis.deesDomTools && globalThis.deesDomTools.domToolsStatePart.getState().virtualViewport) {
|
||||||
return globalThis.deesDomTools.domToolsStatePart.getState().virtualViewport;
|
return globalThis.deesDomTools.domToolsStatePart.getState().virtualViewport;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user