mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01: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;
|
changed = cookie.set(key, value) || changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed) {
|
if (changed && cookie.meta) {
|
||||||
dirty = true;
|
dirty = true;
|
||||||
if (isCluster && cookie.meta) {
|
if (isCluster) {
|
||||||
const message = { cookieUpdate: { ...cookie.meta, cookie } };
|
const message = { cookieUpdate: { ...cookie.meta, cookie } };
|
||||||
cluster.send(message);
|
cluster.send(message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue