commento/frontend/js/logout.js

9 lines
197 B
JavaScript

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