commento/frontend/js/logout.js
2018-12-20 00:50:00 -05:00

9 lines
197 B
JavaScript

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