Get actual screen size rather than viewport size

Fix for issue #4.
This commit is contained in:
Saul Johnson
2017-08-14 12:46:44 +01:00
committed by GitHub
parent 480d2112a8
commit 38eb44ac69
+2 -2
View File
@@ -1,7 +1,7 @@
$(document).ready ->
# Screen dimensions.
screenWidth = window.screen.availWidth
screenHeight = window.screen.availHeight
screenWidth = window.screen.width
screenHeight = window.screen.height
# Wallpaper color attributes.
foregroundColor = 'ce3838'