diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-22 09:42:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-22 09:42:05 +0200 |
commit | f954b5da2a9a5960d7c9563522f1ac0b2c10f96c (patch) | |
tree | 288d07e44319b6bdee6c23d05956aa152ec68580 /client/src/app/shared | |
parent | e7eb5b399725afe7bae2dac27235a6e9478a2f12 (diff) | |
download | PeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.tar.gz PeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.tar.zst PeerTube-f954b5da2a9a5960d7c9563522f1ac0b2c10f96c.zip |
Fix change detection in app component
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/misc/utils.ts | 2 |
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 |
100 | let windowInnerWidth = window.innerWidth | 100 | let windowInnerWidth = window.innerWidth |
101 | setInterval(() => windowInnerWidth = window.innerWidth, 500) | 101 | // setInterval(() => windowInnerWidth = window.innerWidth, 500) |
102 | 102 | ||
103 | function isInSmallView () { | 103 | function isInSmallView () { |
104 | return windowInnerWidth < 600 | 104 | return windowInnerWidth < 600 |