Fixes #20 core.cookie.remove now sets the value and the date of the date object to null which deletes the cookie.
This commit is contained in:
@@ -71,22 +71,6 @@ const showMessage = (m, s) => {
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// const oneClickSelect = (e, t = e.currentTarget) => {
|
||||
// // In here, "this" is the element
|
||||
// var range, selection;
|
||||
// if (window.getSelection) {
|
||||
// selection = window.getSelection();
|
||||
// range = document.createRange();
|
||||
// range.selectNodeContents(t);
|
||||
// selection.removeAllRanges();
|
||||
// selection.addRange(range);
|
||||
// } else if (document.body.createTextRange) {
|
||||
// range = document.body.createTextRange();
|
||||
// range.moveToElementText(t);
|
||||
// range.select();
|
||||
// }
|
||||
// }
|
||||
|
||||
const getURLVars = () => {
|
||||
var oResult = {};
|
||||
if (location.search.length > 0) {
|
||||
@@ -146,7 +130,7 @@ module.exports = {
|
||||
return "";
|
||||
},
|
||||
remove: (cname) => {
|
||||
module.exports.cookie.set(cname, "", -1);
|
||||
module.exports.cookie.set(cname, null, new Date(null));
|
||||
},
|
||||
},
|
||||
oneClickSelect: (e, t = e.currentTarget) => {
|
||||
|
||||
Reference in New Issue
Block a user