mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +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 ) {
|
||||
QWebEngineUrlScheme webUiScheme( localScheme.toLatin1() );
|
||||
webUiScheme.setSyntax( QWebEngineUrlScheme::Syntax::Host );
|
||||
webUiScheme.setFlags( QWebEngineUrlScheme::SecureScheme | QWebEngineUrlScheme::LocalScheme
|
||||
| QWebEngineUrlScheme::LocalAccessAllowed | QWebEngineUrlScheme::CorsEnabled );
|
||||
QWebEngineUrlScheme::registerScheme( webUiScheme );
|
||||
|
|
Loading…
Reference in a new issue