Skip to content

Commit

Permalink
Hotfix anon cookie not being set for presets
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Mar 15, 2024
1 parent 71af9a9 commit f8cf653
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/lobby/src/xhr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ export function seekFromPreset(preset: Preset, opts: PresetOpts) {
processData: false,
data: d,
success: function (data) {
window.location.href = data.redirect;
if (opts.isAnon)
window.lishogi.redirect({
url: data.redirect,
cookie: {
name: 'rk2',
value: data.redirect.slice(-4),
maxAge: 604800,
},
});
else window.lishogi.redirect(data.redirect);
},
});
} else
Expand Down

0 comments on commit f8cf653

Please sign in to comment.