1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 14:25:38 +02:00

chatview: allow remote-debugging-port option to be set

- also re-enables the disable-web-security flag

Change-Id: Iabbae6bd78e30be91b42ea08541cb3ab3aea4045
This commit is contained in:
Andreas Traczyk 2020-09-29 11:41:38 -04:00
parent 93f3754282
commit 5872d40008
2 changed files with 12 additions and 1 deletions

View file

@ -66,7 +66,9 @@ main(int argc, char* argv[])
Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor);
QtWebEngine::initialize();
MainApplication app(argc, argv);
char ARG_DISABLE_WEB_SECURITY[] = "--disable-web-security";
auto newArgv = parseInputArgument(argc, argv, ARG_DISABLE_WEB_SECURITY);
MainApplication app(argc, newArgv);
/*
* Runguard to make sure that only one instance runs at a time.

View file

@ -257,6 +257,15 @@ MainApplication::parseArguments()
parser.addHelpOption();
parser.addVersionOption();
// This option is forced into the arg list.
QCommandLineOption webSecurityDisableOption(QStringList() << "disable-web-security");
parser.addOption(webSecurityDisableOption);
QCommandLineOption webDebugOption(QStringList() << "remote-debugging-port",
"Web debugging port.",
"port");
parser.addOption(webDebugOption);
QCommandLineOption minimizedOption(QStringList() << "m"
<< "minimized",
"Start minimized.");