From 951edeab92868ce1e33722b12a8c68347196c9a5 Mon Sep 17 00:00:00 2001 From: idk Date: Fri, 11 Nov 2022 18:58:48 -0500 Subject: [PATCH] add link to build docs in readme, move defaultBrowser iexplore defaults to correct part of function Former-commit-id: 457302777b291ab2607c175535174b3219c9d468 Former-commit-id: b349d01e3b2c9dbd007db3e56b489d64613f1b8b --- README.md | 4 ++++ src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 34310b6..db27ea0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ directory for Firefox, and the `src/i2p.chromium.*.profile/extensions/*.js/*` di ## Getting started +### Building the package: + + - See: [BUILD.md](docs/BUILD.md)/[BUILD.html](docs/BUILD.html) + ### Using a Binary For platform specific instructions, see diff --git a/src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java b/src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java index 4417a8b..307e897 100644 --- a/src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java +++ b/src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java @@ -99,9 +99,8 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser { * @since 2.0.0 */ static public String getDefaultWindowsBrowser() { - String defaultBrowser = - "C:\\Program Files\\Internet Explorer\\iexplore.exe"; - String key = ""; + String defaultBrowser; + String key; // User-Configured HTTPS Browser key = "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Shell\\Associations\\URLAssociations\\https\\UserChoice"; @@ -126,6 +125,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser { if (defaultBrowser != null) { return defaultBrowser; } + defaultBrowser = "C:\\Program Files\\Internet Explorer\\iexplore.exe"; return defaultBrowser; }