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:
20
public/assets/scaffolding-min.js
vendored
20
public/assets/scaffolding-min.js
vendored
@@ -75,23 +75,6 @@ var showMessage = function showMessage(m, s) {
|
||||
status.remove();
|
||||
}, 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();
|
||||
// }
|
||||
// }
|
||||
|
||||
var getURLVars = function getURLVars() {
|
||||
var oResult = {};
|
||||
if (location.search.length > 0) {
|
||||
@@ -146,7 +129,7 @@ module.exports = {
|
||||
return "";
|
||||
},
|
||||
remove: function remove(cname) {
|
||||
module.exports.cookie.set(cname, "", -1);
|
||||
module.exports.cookie.set(cname, null, new Date(null));
|
||||
}
|
||||
},
|
||||
oneClickSelect: function oneClickSelect(e) {
|
||||
@@ -3411,7 +3394,6 @@ var flipInfoSwitch = function flipInfoSwitch(e) {
|
||||
});
|
||||
break;
|
||||
case "breakpoints":
|
||||
console.log("here");
|
||||
_core_core_js__WEBPACK_IMPORTED_MODULE_0__.cookie.set("show-breakpoints", s.getAttribute("aria-checked"), 30, "/");
|
||||
document.querySelector("html").classList[s.getAttribute("aria-checked") == "true" ? "add" : "remove"]("show-breakpoints");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user