opt: remove disable-web-security parameter

this parameter has not documented
This commit is contained in:
YiFang Xiao 2023-12-11 17:19:07 +08:00
parent e39e5b942d
commit b207691334

View file

@ -344,17 +344,7 @@ int main( int argc, char ** argv )
qputenv( "QT_AUTO_SCREEN_SCALE_FACTOR", "1" ); qputenv( "QT_AUTO_SCREEN_SCALE_FACTOR", "1" );
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough ); QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
QHotkeyApplication app( "GoldenDict-ng", argc, argv );
char ARG_DISABLE_WEB_SECURITY[] = "--disable-web-security";
int newArgc = argc + 1 + 1;
char ** newArgv = new char *[ newArgc ];
for ( int i = 0; i < argc; i++ ) {
newArgv[ i ] = argv[ i ];
}
newArgv[ argc ] = ARG_DISABLE_WEB_SECURITY;
newArgv[ argc + 1 ] = nullptr;
QHotkeyApplication app( "GoldenDict-ng", newArgc, newArgv );
QHotkeyApplication::setApplicationName( "GoldenDict-ng" ); QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" ); QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );