fix: add 3rd param to setexchangecode callback (#745)

* fix: add 3rd param to setexchangecode callback

I'm unsure what that param is, it could be an error indicator of some sorts, for now I'll just assume a happy path

* chore: add logging for the param
This commit is contained in:
Paweł Lidwin 2026-04-13 13:26:15 +02:00 committed by GitHub
parent ce12e3fb63
commit 41e3cfab82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,9 @@ class MockLauncher:
def open_url_external(self, url):
webbrowser.open(url)
def set_exchange_code(self, exchange_code):
def set_exchange_code(self, exchange_code, param):
if param:
logger.warning(f'Unknown parameter provided: {param}. Please report it on GitHub')
self.inject_js = False
logger.debug('Got exchange code (stage 1)!')
# The default Windows webview retains cookies, GTK/Qt do not. Therefore we can