only add more flags when more flags are passed.

Former-commit-id: 3e5b9c049d
Former-commit-id: 5cfea67fa4119ea80a0f94b42805cceabefa7d6a
This commit is contained in:
idk
2022-08-21 00:25:27 -04:00
parent e2cd2f3805
commit 27f55ba05b
3 changed files with 10 additions and 6 deletions

View File

@ -2,9 +2,9 @@
GITHUB_USER=eyedeekay
GITHUB_REPO=i2p.plugins.firefox
GITHUB_NAME="Which fixes one tiny bug that was bothering me"
GITHUB_NAME="Which fixes another tiny bug that was bothering me"
GITHUB_DESCRIPTION=$(cat CHANGES.md)
GITHUB_TAG=0.0.11
GITHUB_TAG=0.0.12
ant distclean
ant jar freeZip
github-release release --user "${GITHUB_USER}" \

View File

@ -339,8 +339,10 @@ public class I2PChromium {
new File(I2PChromiumProfileBuilder.profileDirectory(),"extensions/ublock.js").getAbsolutePath()
+","+
new File(I2PChromiumProfileBuilder.profileDirectory(),"extensions/scriptsafe.js").getAbsolutePath();*/
for (int i = 0; i < args.length; i++) {
newArgs[i+20] = args[i];
if (args.length > 0) {
for (int i = 0; i < args.length; i++) {
newArgs[i+20] = args[i];
}
}
return new ProcessBuilder(newArgs).directory(I2PChromiumProfileBuilder.runtimeDirectory(true));
} else {

View File

@ -294,8 +294,10 @@ public class I2PFirefox {
newArgs[0] = firefox;
newArgs[1] = "--profile";
newArgs[2] = I2PFirefoxProfileBuilder.profileDirectory();
for (int i = 0; i < args.length; i++) {
newArgs[i+3] = args[i];
if (args.length > 0) {
for (int i = 0; i < args.length; i++) {
newArgs[i+3] = args[i];
}
}
return new ProcessBuilder(newArgs).directory(I2PFirefoxProfileBuilder.runtimeDirectory(true));
} else {