start browser discovery code for Windows

Former-commit-id: daf642f145
Former-commit-id: 608a206c86c3a7d4f859f9f3633bf62f613430db
This commit is contained in:
idk
2022-08-27 21:18:29 -04:00
parent f86df634c5
commit b933ed42c0

View File

@ -58,9 +58,9 @@ public class I2PGenericUnsafeBrowser {
while (kb.hasNextLine()) {
String line = kb.nextLine();
if (line.contains("(Default")){
String[] splitLine = line.split("\\t+");
String[] splitLine = line.split(" ");
kb.close();
return splitLine[splitLine.length-1];
return splitLine[splitLine.length-2];
}
}
// Match wasn't found, still need to close Scanner