You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$scope.login = function() {
.......
xdLocalStorage.setItem('authUser', angular.toJson(authUser), function(data) {
console.log(data.success);
if (data.success) {
console.log('Your data has been successfully stored.');
$location.path('/home');
} else {
console.log('Ops, could not store your data.');
}
});
}
BUT
$location.path('/home'); is not run at the first time clicking login but second times $location.path('/home'); is run
The text was updated successfully, but these errors were encountered:
I think that in case of "xdLocalStorage was already initialized!", you should permit communicating with the cross-domain with the existing xdLocalStorage. Currently, if encountering this case, all API seem to be NOT avaiable !!!! Maybe it comes from Angular router. If I do workaround your code in the function init
// if (wasInit) {
// console.log('xdLocalStorage was already initialized!');
// return;
// }
var iframeWrapper = document.getElementById("iframe-wrapper");
if (iframeWrapper != null) iframeWrapper.remove() ;
var temp = document.createElement('div');
temp.setAttribute("id", "iframe-wrapper");
My code:
$scope.login = function() {
.......
xdLocalStorage.setItem('authUser', angular.toJson(authUser), function(data) {
console.log(data.success);
if (data.success) {
console.log('Your data has been successfully stored.');
$location.path('/home');
} else {
console.log('Ops, could not store your data.');
}
});
}
BUT
$location.path('/home'); is not run at the first time clicking login but second times $location.path('/home'); is run
The text was updated successfully, but these errors were encountered: