fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-27 22:30:03 +00:00
parent 16a213f536
commit dfb9175613

View File

@ -7,7 +7,7 @@ export const phone = 340;
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) {
return globalThis.deesDomTools.domToolsStatePart.getState().virtualViewport;
} else {