From 6a89309ef99a1fd82955746be5e14a333e3f51fe Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 14 Sep 2022 12:21:33 -0400 Subject: [PATCH] Potential Colab Tweak Fix --- static/koboldai.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/koboldai.js b/static/koboldai.js index c3ec2894..6465f8b3 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -3862,9 +3862,6 @@ $(document).ready(function(){ document.onkeyup = detect_key_up; document.getElementById("input_text").onkeydown = detect_enter_submit; - process_cookies(); - - // Tweak registering for (const tweakContainer of document.getElementsByClassName("tweak-container")) { let toggle = tweakContainer.querySelector("input"); @@ -3887,6 +3884,8 @@ $(document).ready(function(){ save_tweaks(); }); } + + process_cookies(); // Load tweaks from cookies if not on Colab; Colab uses the server for persistant storage. if (!on_colab) load_tweaks(getCookie("enabledTweaks", "[]"));