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:
parent
93f3754282
commit
5872d40008
2 changed files with 12 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Add table
Reference in a new issue