aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r--client/src/app/shared/misc/utils.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts
index 0e6e6b366..6620ac973 100644
--- a/client/src/app/shared/misc/utils.ts
+++ b/client/src/app/shared/misc/utils.ts
@@ -55,15 +55,20 @@ function dateToHuman (date: string) {
55 return datePipe.transform(date, 'medium') 55 return datePipe.transform(date, 'medium')
56} 56}
57 57
58function isInMobileView () { 58function isInSmallView () {
59 return window.innerWidth < 600 59 return window.innerWidth < 600
60} 60}
61 61
62function isInMobileView () {
63 return window.innerWidth < 500
64}
65
62export { 66export {
63 viewportHeight, 67 viewportHeight,
64 getParameterByName, 68 getParameterByName,
65 populateAsyncUserVideoChannels, 69 populateAsyncUserVideoChannels,
66 getAbsoluteAPIUrl, 70 getAbsoluteAPIUrl,
67 dateToHuman, 71 dateToHuman,
72 isInSmallView,
68 isInMobileView 73 isInMobileView
69} 74}