From 0b381c1b36baeeb7ce659f8fcac4510200938d8f Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Mon, 4 Jun 2018 04:31:15 +0200 Subject: Style clean up + fix typo Issue #434 --- application/palemoon/base/content/openLocation.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/palemoon/base/content/openLocation.js b/application/palemoon/base/content/openLocation.js index f4338c992..ed869ac9c 100644 --- a/application/palemoon/base/content/openLocation.js +++ b/application/palemoon/base/content/openLocation.js @@ -16,8 +16,7 @@ try { } Components.utils.import("resource:///modules/openLocationLastURL.jsm", openLocationModule); -var gOpenLocationLastURL = new openLocationModule.OpenLocationLastURL( - window.opener); +var gOpenLocationLastURL = new openLocationModule.OpenLocationLastURL(window.opener); function onLoad() { @@ -41,8 +40,7 @@ function onLoad() try { var value = pref.getIntPref("general.open_location.last_window_choice"); - var element = dialog.openWhereList.getElementsByAttribute( - "value", value)[0]; + var element = dialog.openWhereList.getElementsByAttribute("value", value)[0]; if (element) dialog.openWhereList.selectedItem = element; dialog.input.value = gOpenLocationLastURL.value; @@ -89,7 +87,7 @@ function openLocation(openData) { try { // Whichever target we use for the load, we allow third-party services to - // fixup the URI + // fix up the URI switch (dialog.openWhereList.value) { case "0": var webNav = Components.interfaces.nsIWebNavigation; -- cgit v1.2.3