commento/frontend/js/logout.js

9 lines
196 B
JavaScript

(function (global, document) {
global.logout = function() {
global.cookieDelete("commentoOwnerToken");
document.location = global.commentoOrigin + "/login";
}
} (window, document));