start browser discovery code for Windows

Former-commit-id: f7fa3c3eca
Former-commit-id: 580af619de932b1f251d50b6ad727355e6a587f7
This commit is contained in:
idk
2022-08-27 21:17:13 -04:00
parent 04a4e37734
commit f86df634c5

View File

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