Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- //START OF logout
- var logout = {
- init: function() {
- this.triggers();
- },
- triggers: function() {
- $('#logout').on('click', function (e) {
- clearToken(e)
- });
- }
- };
- //END OF logout
- var clearToken = function(e) {
- localStorage.clear();
- sessionStorage.clear();
- };
- logout.init();
- });
Add Comment
Please, Sign In to add comment