mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUAC-898: Use camelCase for new code.
This commit is contained in:
@@ -431,9 +431,9 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
|||||||
// Send new display size, if changed
|
// Send new display size, if changed
|
||||||
if (client && display) {
|
if (client && display) {
|
||||||
|
|
||||||
var pixel_density = $window.devicePixelRatio || 1;
|
var pixelDensity = $window.devicePixelRatio || 1;
|
||||||
var width = main.offsetWidth * pixel_density;
|
var width = main.offsetWidth * pixelDensity;
|
||||||
var height = main.offsetHeight * pixel_density;
|
var height = main.offsetHeight * pixelDensity;
|
||||||
|
|
||||||
if (display.getWidth() !== width || display.getHeight() !== height)
|
if (display.getWidth() !== width || display.getHeight() !== height)
|
||||||
client.sendSize(width, height);
|
client.sendSize(width, height);
|
||||||
|
Reference in New Issue
Block a user