Potential Colab Tweak Fix

This commit is contained in:
ebolam
2022-09-14 12:21:33 -04:00
parent e654a0c78a
commit 6a89309ef9

View File

@@ -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");
@@ -3888,6 +3885,8 @@ $(document).ready(function(){
});
}
process_cookies();
// Load tweaks from cookies if not on Colab; Colab uses the server for persistant storage.
if (!on_colab) load_tweaks(getCookie("enabledTweaks", "[]"));