opt: reduce the network stall time

This commit is contained in:
YiFang Xiao 2023-10-07 20:44:36 +08:00
parent 649cf17595
commit e69aabf296

View file

@ -409,6 +409,7 @@ int main( int argc, char ** argv )
for ( const auto & localScheme : localSchemes ) { for ( const auto & localScheme : localSchemes ) {
QWebEngineUrlScheme webUiScheme( localScheme.toLatin1() ); QWebEngineUrlScheme webUiScheme( localScheme.toLatin1() );
webUiScheme.setSyntax( QWebEngineUrlScheme::Syntax::Host );
webUiScheme.setFlags( QWebEngineUrlScheme::SecureScheme | QWebEngineUrlScheme::LocalScheme webUiScheme.setFlags( QWebEngineUrlScheme::SecureScheme | QWebEngineUrlScheme::LocalScheme
| QWebEngineUrlScheme::LocalAccessAllowed | QWebEngineUrlScheme::CorsEnabled ); | QWebEngineUrlScheme::LocalAccessAllowed | QWebEngineUrlScheme::CorsEnabled );
QWebEngineUrlScheme::registerScheme( webUiScheme ); QWebEngineUrlScheme::registerScheme( webUiScheme );