]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/misc/utils.ts
Add bootstrap analyzer and optimize build
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / misc / utils.ts
index 2b5c3686ebf10add63d088c6376e20acfa1cd099..df9e0381a32c7ab2a1254104d2421b84ffd925c6 100644 (file)
@@ -13,6 +13,11 @@ function getParameterByName (name: string, url: string) {
   return decodeURIComponent(results[2].replace(/\+/g, ' '))
 }
 
+function viewportHeight () {
+  return Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
+}
+
 export {
+  viewportHeight,
   getParameterByName
 }