mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix change detection in app component
This commit is contained in:
parent
e7eb5b3997
commit
f954b5da2a
5 changed files with 4 additions and 11 deletions
|
@ -98,7 +98,7 @@ function lineFeedToHtml (obj: object, keyToNormalize: string) {
|
|||
|
||||
// Try to cache a little bit window.innerWidth
|
||||
let windowInnerWidth = window.innerWidth
|
||||
setInterval(() => windowInnerWidth = window.innerWidth, 500)
|
||||
// setInterval(() => windowInnerWidth = window.innerWidth, 500)
|
||||
|
||||
function isInSmallView () {
|
||||
return windowInnerWidth < 600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue