diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-04 04:31:15 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-04 04:31:15 +0200 |
commit | 0b381c1b36baeeb7ce659f8fcac4510200938d8f (patch) | |
tree | c7f721051480dffac0ca3aa16993df2d1d4f2979 | |
parent | 40ad43a8ad22416d5350e854aeeac14622c037e8 (diff) | |
download | UXP-0b381c1b36baeeb7ce659f8fcac4510200938d8f.tar UXP-0b381c1b36baeeb7ce659f8fcac4510200938d8f.tar.gz UXP-0b381c1b36baeeb7ce659f8fcac4510200938d8f.tar.lz UXP-0b381c1b36baeeb7ce659f8fcac4510200938d8f.tar.xz UXP-0b381c1b36baeeb7ce659f8fcac4510200938d8f.zip |
Style clean up + fix typo
Issue #434
-rw-r--r-- | application/palemoon/base/content/openLocation.js | 8 |
1 files 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; |