From 203dd8bf7ad250f69006a5a46f140debaee6c7a3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 1 Oct 2012 11:50:54 +0200 Subject: [PATCH] broadway: Fix indentation --- gdk/broadway/broadway.js | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index a5e30c1bfd..bd519d0775 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -2788,30 +2788,30 @@ function connect() ws = newWS (loc); } - ws.onopen = function() { - inputSocket = ws; - var w, h; - if (useToplevelWindows) { - w = window.screen.width; - h = window.screen.height; - } else { + ws.onopen = function() { + inputSocket = ws; + var w, h; + if (useToplevelWindows) { + w = window.screen.width; + h = window.screen.height; + } else { + w = window.innerWidth; + h = window.innerHeight; + window.onresize = function(ev) { + var w, h; w = window.innerWidth; h = window.innerHeight; - window.onresize = function(ev) { - var w, h; - w = window.innerWidth; - h = window.innerHeight; - sendInput ("d", [w, h]); - }; - } - sendInput ("d", [w, h]); - }; - ws.onclose = function() { - inputSocket = null; - }; - ws.onmessage = function(event) { - handleMessage(event.data); - }; + sendInput ("d", [w, h]); + }; + } + sendInput ("d", [w, h]); + }; + ws.onclose = function() { + inputSocket = null; + }; + ws.onmessage = function(event) { + handleMessage(event.data); + }; setupDocument(document); window.onunload = function (ev) {