This commit is contained in:
parent
b06c4cb2cd
commit
d7369a3ef7
1 changed files with 6 additions and 7 deletions
|
|
@ -295,15 +295,14 @@ function __uvHook(window) {
|
|||
});
|
||||
|
||||
client.document.on('setCookie', (event) => {
|
||||
Promise.resolve(
|
||||
__uv.cookie.setCookies(event.data.value, __uv.db, __uv.meta)
|
||||
).then(() => {
|
||||
__uv.cookie.db().then((db) => {
|
||||
__uv.cookie.getCookies(db).then((cookies) => {
|
||||
cookieStr = __uv.cookie.serialize(cookies, __uv.meta, true);
|
||||
});
|
||||
__uv.cookie.db().then((db) => {
|
||||
__uv.cookie.setCookies(event.data.value, db, __uv.meta);
|
||||
|
||||
__uv.cookie.getCookies(db).then((cookies) => {
|
||||
cookieStr = __uv.cookie.serialize(cookies, __uv.meta, true);
|
||||
});
|
||||
});
|
||||
|
||||
const cookie = __uv.cookie.setCookie(event.data.value)[0];
|
||||
|
||||
if (!cookie.path) cookie.path = '/';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue