Add on_colab global variable

This commit is contained in:
somebody
2022-09-07 16:47:47 -05:00
parent 7c72172e86
commit e890b7e226

View File

@@ -42,6 +42,7 @@ var world_info_data = {};
var world_info_folder_data = {};
var saved_settings = {};
var finder_selection_index = -1;
var on_colab;
// name, desc, icon, func
const finder_actions = [
@@ -3357,6 +3358,8 @@ function open_finder() {
}
$(document).ready(function(){
on_colab = document.getElementById("on_colab").textContent == "true";
create_theming_elements();
document.onkeydown = detect_key_down;
document.onkeyup = detect_key_up;