From b6bc94692a9317a6deda1d7eda38d4b017d8e609 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 18 Jun 2020 17:10:36 +0200 Subject: Fix resolution detection JS --- src/main/resources/controllers/groupFieldController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/controllers/groupFieldController.js b/src/main/resources/controllers/groupFieldController.js index f49862b..ce80854 100644 --- a/src/main/resources/controllers/groupFieldController.js +++ b/src/main/resources/controllers/groupFieldController.js @@ -1,6 +1,6 @@ angular.module('group').controller('groupFieldController', ['$scope', function groupFieldController($scope) { - $scope.data = { id: 0, password: '', resolution: window.screen.innerWidth + 'x' + window.screen.innerHeight }; + $scope.data = { id: 0, password: '', resolution: window.innerWidth + 'x' + window.innerHeight }; $scope.$watch('data', function(newValue) { if (window.location.hash !== '#/') { -- cgit v1.2.3-55-g7522