basil.js icon indicating copy to clipboard operation
basil.js copied to clipboard

handling path

Open saiballo opened this issue 2 years ago • 2 comments

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

saiballo avatar Oct 14 '23 14:10 saiballo

Hi @saiballo,

Indeed that could be something we could override in options during instantiation.

Would you mind provide a Pull Request for that?

Best

guillaumepotier avatar Oct 16 '23 07:10 guillaumepotier

I can try... I've never made a pull request

saiballo avatar Oct 16 '23 07:10 saiballo