basil.js
basil.js copied to clipboard
handling path
hello,
in current version cookie path is fixed to the value "/"
how about render it dynamic? something like this:
if (options.path) {
cookie += '; path=' + options.path;
}
document.cookie = cookie + ';';
thank you lorenzo
Hi @saiballo,
Indeed that could be something we could override in options during instantiation.
Would you mind provide a Pull Request for that?
Best
I can try... I've never made a pull request