diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-28 17:05:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-28 17:05:46 +0200 |
commit | 5afdd0a52f2f1fa79ed9bf241b5a525366658fa1 (patch) | |
tree | 58bc17102b26893530ca64e757c2389361a36473 /client/src/app/shared/misc/utils.ts | |
parent | e33e7fc89e4f0e2fbd1d7e87a4e2a2d5aae94f29 (diff) | |
download | PeerTube-5afdd0a52f2f1fa79ed9bf241b5a525366658fa1.tar.gz PeerTube-5afdd0a52f2f1fa79ed9bf241b5a525366658fa1.tar.zst PeerTube-5afdd0a52f2f1fa79ed9bf241b5a525366658fa1.zip |
Add initial video quota info in registration form
Diffstat (limited to 'client/src/app/shared/misc/utils.ts')
-rw-r--r-- | client/src/app/shared/misc/utils.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts index d520b1a7b..99f6b3cf0 100644 --- a/client/src/app/shared/misc/utils.ts +++ b/client/src/app/shared/misc/utils.ts | |||
@@ -17,10 +17,6 @@ function getParameterByName (name: string, url: string) { | |||
17 | return decodeURIComponent(results[2].replace(/\+/g, ' ')) | 17 | return decodeURIComponent(results[2].replace(/\+/g, ' ')) |
18 | } | 18 | } |
19 | 19 | ||
20 | function viewportHeight () { | ||
21 | return Math.max(document.documentElement.clientHeight, window.innerHeight || 0) | ||
22 | } | ||
23 | |||
24 | function populateAsyncUserVideoChannels (authService: AuthService, channel: any[]) { | 20 | function populateAsyncUserVideoChannels (authService: AuthService, channel: any[]) { |
25 | return new Promise(res => { | 21 | return new Promise(res => { |
26 | authService.userInformationLoaded | 22 | authService.userInformationLoaded |
@@ -99,7 +95,6 @@ function isInMobileView () { | |||
99 | } | 95 | } |
100 | 96 | ||
101 | export { | 97 | export { |
102 | viewportHeight, | ||
103 | getParameterByName, | 98 | getParameterByName, |
104 | populateAsyncUserVideoChannels, | 99 | populateAsyncUserVideoChannels, |
105 | getAbsoluteAPIUrl, | 100 | getAbsoluteAPIUrl, |