Success message

This commit is contained in:
Peter Maquiran
2021-07-22 16:06:52 +01:00
parent e8049830c7
commit c20ab17274
18 changed files with 98 additions and 43 deletions
+8 -5
View File
@@ -79,10 +79,12 @@ export class HomePage implements OnInit {
}
mobilefirstConnect() {
window['WLAuthorizationManager'].obtainAccessToken("").then(
(token) => {
try {
window['WLAuthorizationManager'].obtainAccessToken("").then( (token) => {
console.log('MobileFirst Server connect: Success ' + token);
var resourceRequest = new WLResourceRequest("/adapters/javaAdapter/resource/greet/",
WLResourceRequest.GET
);
@@ -105,8 +107,9 @@ export class HomePage implements OnInit {
alert("Bummer...");
alert("Failed to connect to MobileFirst Server");
}); */
}
);
});
} catch {}
}
}