mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
opt: reduce the network stall time
This commit is contained in:
parent
649cf17595
commit
e69aabf296
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue