diff --git a/core/client/components/action/KToggleFullscreenAction.vue b/core/client/components/action/KToggleFullscreenAction.vue index c9c8bd101..b82206211 100644 --- a/core/client/components/action/KToggleFullscreenAction.vue +++ b/core/client/components/action/KToggleFullscreenAction.vue @@ -9,7 +9,7 @@ \ No newline at end of file diff --git a/core/client/utils/utils.screen.js b/core/client/utils/utils.screen.js index d117781e2..d8942f9e7 100644 --- a/core/client/utils/utils.screen.js +++ b/core/client/utils/utils.screen.js @@ -1,10 +1,10 @@ import _ from 'lodash' import logger from 'loglevel' -import {toRef } from 'vue' +import { toRef } from 'vue' import { Screen } from 'quasar' import { AppFullscreen } from 'quasar' -export const isFullscreen = toRef(AppFullscreen, 'isActive') +export const Fullscreen = toRef(AppFullscreen, 'isActive') export function computeResponsiveWidth (width) { let breakpointWidth = width @@ -51,8 +51,7 @@ export function computeResponsiveSize (size) { } export function getOrientation () { - if (window) return window.screen.orientation - return Screen.width > Screen.height ? 'portrait' : 'landscape' + return Screen.width > Screen.height ? 'portrait' : 'landscape' } export async function toggleFullscreen () {