From 8252cc2ff4a81301934bf16a71e7d007f5b2b3c6 Mon Sep 17 00:00:00 2001 From: radiantmediaplayer Date: Fri, 16 Oct 2020 17:09:58 +0200 Subject: [PATCH] 1.0.6 - pass ESLint --- js/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index 6e6f486..2f5396e 100644 --- a/js/main.js +++ b/js/main.js @@ -11,6 +11,4 @@ document.addEventListener('keydown', _onKeyDown); // user agent info var viewportSize = document.getElementById('viewportSize'); -var innerWidth = window.innerWidth; -var innerHeight = window.innerHeight; -viewportSize.innerHTML = 'width: ' + innerWidth + ' - height: ' + innerHeight; +viewportSize.innerHTML = 'width: ' + window.innerWidth + ' - height: ' + window.innerHeight;