fix log
This commit is contained in:
parent
74fdef683f
commit
485ff9634b
1 changed files with 4 additions and 0 deletions
|
@ -249,6 +249,10 @@ void DiscordPage::javaScriptConsoleMessage(
|
||||||
QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString &message,
|
QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString &message,
|
||||||
int lineNumber, const QString &sourceID) {
|
int lineNumber, const QString &sourceID) {
|
||||||
auto colorSegments = message.split("%c");
|
auto colorSegments = message.split("%c");
|
||||||
|
if (colorSegments[0] != "") {
|
||||||
|
for (auto line : colorSegments[0].split("\n"))
|
||||||
|
qDebug(discordLog) << line.toUtf8().constData();
|
||||||
|
}
|
||||||
for (auto segment : colorSegments.mid(1)) {
|
for (auto segment : colorSegments.mid(1)) {
|
||||||
auto lines = segment.split("\n");
|
auto lines = segment.split("\n");
|
||||||
QString ansi;
|
QString ansi;
|
||||||
|
|
Loading…
Reference in a new issue