Skip to content

Commit

Permalink
add captcha interceptor to MainQML, too
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron@nanu-c.org committed Feb 8, 2021
1 parent 90a382e commit 95253b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions guis/qml/qml/MainQML.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ import QtMultimedia 5.8
var msg = "[Axolotl Web View] [JS] (%1:%2) %3".arg(sourceID).arg(lineNumber).arg(message)
console.log(msg)
}
onLoadingChanged:{
// interceptor to make the registration captcha work
var msg = "[Axolotl Web View] [JS] url changed %1".arg(url)
console.log(msg)
var interceptor = "window.onToken = function(token){window.location = 'http://localhost:9080/?token='+token;};"
webView.runJavaScript(interceptor)
}
WebEngineProfile{
id:webProfile
}
Expand Down

0 comments on commit 95253b2

Please sign in to comment.