mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for cookie storage
This commit is contained in:
@@ -285,7 +285,7 @@ function do_story_text_updates(data) {
|
|||||||
|
|
||||||
story_area.append(span);
|
story_area.append(span);
|
||||||
clearTimeout(game_text_scroll_timeout);
|
clearTimeout(game_text_scroll_timeout);
|
||||||
game_text_scroll_timeout = setTimeout(function() {span.scrollIntoView(false);}, 200);
|
game_text_scroll_timeout = setTimeout(function() {document.getElementById('gamescreen').scrollTo(0, document.body.scrollHeight);}, 200);
|
||||||
if (span.textContent != "") {
|
if (span.textContent != "") {
|
||||||
assign_world_info_to_action(span, null);
|
assign_world_info_to_action(span, null);
|
||||||
}
|
}
|
||||||
@@ -2030,7 +2030,7 @@ function save_tweaks() {
|
|||||||
|
|
||||||
|
|
||||||
function load_cookies(data) {
|
function load_cookies(data) {
|
||||||
for (cookie of data) {
|
for (const cookie of Object.keys(data)) {
|
||||||
setCookie(cookie, data[cookie]);
|
setCookie(cookie, data[cookie]);
|
||||||
}
|
}
|
||||||
process_cookies();
|
process_cookies();
|
||||||
|
Reference in New Issue
Block a user