Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with angular $window.location.href #1

Closed
AlexKhymenko opened this issue Aug 20, 2015 · 5 comments
Closed

Not working with angular $window.location.href #1

AlexKhymenko opened this issue Aug 20, 2015 · 5 comments

Comments

@AlexKhymenko
Copy link

Not working with angular $window.location.href.

@jcubic
Copy link
Owner

jcubic commented Aug 20, 2015

What is the code you're using?

@AlexKhymenko
Copy link
Author

   sysend.on('logOut', function() {
        console.log('crossbrowser');
    })

    $scope.logout = function () {
        return $http({
                method: 'POST' 
            })
            .success(function (response) {
            sysend.broadcast('logOut');
            $window.location.href = CONTEXT_PATH;
            })
    };

@jcubic
Copy link
Owner

jcubic commented Aug 20, 2015

The problem is with remove localStorage after i sec timeout. so you should get only one message only the first time. I've removed the timeout and it work just fine.

@jcubic jcubic closed this as completed in 62b303f Aug 20, 2015
@AlexKhymenko
Copy link
Author

Thank you!!

@jcubic
Copy link
Owner

jcubic commented Mar 3, 2016

I needed to add back timeout (0 time) to remove because events stop working in chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants