diff options
Diffstat (limited to 'client/src/app/shared/misc/utils.ts')
-rw-r--r-- | client/src/app/shared/misc/utils.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts index 2b5c3686e..df9e0381a 100644 --- a/client/src/app/shared/misc/utils.ts +++ b/client/src/app/shared/misc/utils.ts | |||
@@ -13,6 +13,11 @@ function getParameterByName (name: string, url: string) { | |||
13 | return decodeURIComponent(results[2].replace(/\+/g, ' ')) | 13 | return decodeURIComponent(results[2].replace(/\+/g, ' ')) |
14 | } | 14 | } |
15 | 15 | ||
16 | function viewportHeight () { | ||
17 | return Math.max(document.documentElement.clientHeight, window.innerHeight || 0) | ||
18 | } | ||
19 | |||
16 | export { | 20 | export { |
21 | viewportHeight, | ||
17 | getParameterByName | 22 | getParameterByName |
18 | } | 23 | } |