Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/d70ad72cc42949104a4dca73eec521ef4ef65920?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
27 additions and
0 deletions
src/web/browser/WBWebView.h
@ -95,6 +95,33 @@ class WBWebPage : public UBWebPage
QWebPage * createWindow ( QWebPage : : WebWindowType type ) ;
QWebPage * createWindow ( QWebPage : : WebWindowType type ) ;
QObject * createPlugin ( const QString & classId , const QUrl & url , const QStringList & paramNames , const QStringList & paramValues ) ;
QObject * createPlugin ( const QString & classId , const QUrl & url , const QStringList & paramNames , const QStringList & paramValues ) ;
bool supportsExtension ( Extension extension ) const {
if ( extension = = QWebPage : : ErrorPageExtension )
{
return true ;
}
return false ;
}
bool extension ( Extension extension , const ExtensionOption * option = 0 , ExtensionReturn * output = 0 )
{
if ( extension ! = QWebPage : : ErrorPageExtension )
return false ;
ErrorPageExtensionOption * errorOption = ( ErrorPageExtensionOption * ) option ;
qDebug ( ) < < " Error loading " < < qPrintable ( errorOption - > url . toString ( ) ) ;
if ( errorOption - > domain = = QWebPage : : QtNetwork )
qDebug ( ) < < " Network error ( " < < errorOption - > error < < " ): " ;
else if ( errorOption - > domain = = QWebPage : : Http )
qDebug ( ) < < " HTTP error ( " < < errorOption - > error < < " ): " ;
else if ( errorOption - > domain = = QWebPage : : WebKit )
qDebug ( ) < < " WebKit error ( " < < errorOption - > error < < " ): " ;
qDebug ( ) < < qPrintable ( errorOption - > errorString ) ;
return false ;
}
private slots :
private slots :
void handleUnsupportedContent ( QNetworkReply * reply ) ;
void handleUnsupportedContent ( QNetworkReply * reply ) ;