mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Success message
This commit is contained in:
@@ -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 {}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user