aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc/utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-22 09:42:05 +0200
committerChocobozzz <me@florianbigard.com>2018-05-22 09:42:05 +0200
commitf954b5da2a9a5960d7c9563522f1ac0b2c10f96c (patch)
tree288d07e44319b6bdee6c23d05956aa152ec68580 /client/src/app/shared/misc/utils.ts
parente7eb5b399725afe7bae2dac27235a6e9478a2f12 (diff)
downloadPeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.tar.gz
PeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.tar.zst
PeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.zip
Fix change detection in app component
Diffstat (limited to 'client/src/app/shared/misc/utils.ts')
-rw-r--r--client/src/app/shared/misc/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts
index 79c93c1b3..727e33935 100644
--- a/client/src/app/shared/misc/utils.ts
+++ b/client/src/app/shared/misc/utils.ts
@@ -98,7 +98,7 @@ function lineFeedToHtml (obj: object, keyToNormalize: string) {
98 98
99// Try to cache a little bit window.innerWidth 99// Try to cache a little bit window.innerWidth
100let windowInnerWidth = window.innerWidth 100let windowInnerWidth = window.innerWidth
101setInterval(() => windowInnerWidth = window.innerWidth, 500) 101// setInterval(() => windowInnerWidth = window.innerWidth, 500)
102 102
103function isInSmallView () { 103function isInSmallView () {
104 return windowInnerWidth < 600 104 return windowInnerWidth < 600