#20 should be fixed but needs testing

This commit is contained in:
A McIlwraith 2024-10-02 10:07:51 -04:00
parent bcbe51e9a7
commit 197e6f2f33
2 changed files with 8 additions and 7 deletions

View File

@ -144,8 +144,8 @@ module.exports = {
}
return "";
},
remove: function remove(cnane) {
setCookie(cname, "", -1);
remove: function remove(cname) {
module.exports.cookie.set(cname, "", -1);
}
},
colour: {
@ -174,9 +174,10 @@ module.exports = {
});
}
},
// getCSS: (el, prop, b = false) {
// return window.getComputedStyle(el, null).getPropertyValue(prop);
// },
getCSS: function getCSS(el, prop) {
var b = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
return window.getComputedStyle(el, null).getPropertyValue(prop);
},
init: function init() {
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var url = getURLVars();

View File

@ -145,8 +145,8 @@ module.exports = {
}
return "";
},
remove: (cnane) => {
setCookie(cname, "", -1);
remove: (cname) => {
module.exports.cookie.set(cname, "", -1);
},
},
colour: {