diff --git a/matrixConsole/View/MXCRegistrationWebView.h b/matrixConsole/View/MXCRegistrationWebView.h index bdfed08cd..115a49ecf 100644 --- a/matrixConsole/View/MXCRegistrationWebView.h +++ b/matrixConsole/View/MXCRegistrationWebView.h @@ -25,7 +25,6 @@ @param fallbackPage the fallback page hosted by a home server. @param success the block called when the user has been successfully registered. - */ - (void)openFallbackPage:(NSString*)fallbackPage success:(void (^)(MXCredentials *credentials))success; diff --git a/matrixConsole/View/MXCRegistrationWebView.m b/matrixConsole/View/MXCRegistrationWebView.m index 23a1ba0d1..03e087fde 100644 --- a/matrixConsole/View/MXCRegistrationWebView.m +++ b/matrixConsole/View/MXCRegistrationWebView.m @@ -27,7 +27,7 @@ NSString *kMXCJavascriptSendObjectMessage = @"var sendObjectMessage = function(p };"; // The function the fallback page calls when the registration is complete -NSString *kMXCJavascriptOnRegistered = @"matrixRegistration.onRegistered = function(homeserverUrl, userId, accessToken) { \ +NSString *kMXCJavascriptOnRegistered = @"window.matrixRegistration.onRegistered = function(homeserverUrl, userId, accessToken) { \ sendObjectMessage({ \ 'action': 'onRegistered', \ 'homeServer': homeserverUrl, \