mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-14 20:30:06 +00:00
api/cookie: write cookies only if from-file cookie was changed
This commit is contained in:
parent
c44a5ecc89
commit
5a7635cdf7
1 changed files with 2 additions and 2 deletions
|
@ -88,9 +88,9 @@ export function updateCookieValues(cookie, values) {
|
|||
changed = cookie.set(key, value) || changed;
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
if (changed && cookie.meta) {
|
||||
dirty = true;
|
||||
if (isCluster && cookie.meta) {
|
||||
if (isCluster) {
|
||||
const message = { cookieUpdate: { ...cookie.meta, cookie } };
|
||||
cluster.send(message);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue