]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/misc/utils.ts
Handle when autoplay fails
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / misc / utils.ts
index d520b1a7b8f789a145c2166ef0bd9c61e04b5a7b..99f6b3cf06a672005b77788b8bd33c45693f35de 100644 (file)
@@ -17,10 +17,6 @@ function getParameterByName (name: string, url: string) {
   return decodeURIComponent(results[2].replace(/\+/g, ' '))
 }
 
-function viewportHeight () {
-  return Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
-}
-
 function populateAsyncUserVideoChannels (authService: AuthService, channel: any[]) {
   return new Promise(res => {
     authService.userInformationLoaded
@@ -99,7 +95,6 @@ function isInMobileView () {
 }
 
 export {
-  viewportHeight,
   getParameterByName,
   populateAsyncUserVideoChannels,
   getAbsoluteAPIUrl,