diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:52:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:53:09 +0200 |
commit | 3a0fb65c61f80b510bce979a45d59d17948745e8 (patch) | |
tree | c1be0b2158a008fea826835c8d2fd4e8d648bae9 /client/src/app/shared/misc | |
parent | 693263e936763a851e3c8c020e3739def8bd4eca (diff) | |
download | PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.gz PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.zst PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.zip |
Add video miniature dropdown
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r-- | client/src/app/shared/misc/screen.service.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/misc/screen.service.ts b/client/src/app/shared/misc/screen.service.ts index 1cbc96b14..db481204e 100644 --- a/client/src/app/shared/misc/screen.service.ts +++ b/client/src/app/shared/misc/screen.service.ts | |||
@@ -32,6 +32,8 @@ export class ScreenService { | |||
32 | } | 32 | } |
33 | 33 | ||
34 | private cacheWindowInnerWidthExpired () { | 34 | private cacheWindowInnerWidthExpired () { |
35 | if (!this.lastFunctionCallTime) return true | ||
36 | |||
35 | return new Date().getTime() > (this.lastFunctionCallTime + this.cacheForMs) | 37 | return new Date().getTime() > (this.lastFunctionCallTime + this.cacheForMs) |
36 | } | 38 | } |
37 | } | 39 | } |