diff --git a/public/script.js b/public/script.js index 193d1c14e..92a37b8f9 100644 --- a/public/script.js +++ b/public/script.js @@ -1706,7 +1706,7 @@ function resultCheckStatusNovel() { } async function saveChat(chat_name) { - let file_name = chat_name ?? characters[this_chid].chat; + let file_name = chat_name ?? characters[this_chid].chat; chat.forEach(function (item, i) { if (item["is_group"]) { alert('Trying to save group chat with regular saveChat function. Aborting to prevent corruption.'); @@ -1773,7 +1773,7 @@ function read_avatar_load(input) { } async function getChat() { - console.log('/getchat -- entered for -- ' + characters[this_chid].name); + //console.log('/getchat -- entered for -- ' + characters[this_chid].name); try { const response = await $.ajax({ type: 'POST', @@ -1874,7 +1874,7 @@ function changeMainAPI() { softPromptElem: $("#softprompt_block"), }, }; - console.log('--- apiElements--- '); + //console.log('--- apiElements--- '); //console.log(apiElements); for (const apiName in apiElements) { @@ -1887,7 +1887,7 @@ function changeMainAPI() { apiObj.apiPresets.css("display", isCurrentApi ? "block" : "none"); if (isCurrentApi && apiName === "kobold") { - console.log("enabling SP for kobold"); + //console.log("enabling SP for kobold"); $("#softprompt_block").css("display", "block"); } @@ -2065,7 +2065,7 @@ async function getSettings(type) { swipes = !!settings.swipes; //// swipecode $('#swipes-checkbox').prop('checked', swipes); /// swipecode - console.log('getSettings -- swipes = ' + swipes + '. toggling box'); + //console.log('getSettings -- swipes = ' + swipes + '. toggling box'); hideSwipeButtons(); //console.log('getsettings calling showswipebtns'); showSwipeButtons(); @@ -4096,7 +4096,7 @@ $(document).ready(function () { if (clickTarget.hasClass('drawer-icon') == false && !clickTarget.hasClass('openDrawer')) { if (jQuery.find('.openDrawer').length !== 0) { if (targetParentHasOpenDrawer === 0) { - console.log($('.openDrawer').not('.pinnedOpen').length); + //console.log($('.openDrawer').not('.pinnedOpen').length); $('.openDrawer').not('.pinnedOpen').slideToggle(200, "swing"); $('.openIcon').toggleClass('closedIcon openIcon'); $('.openDrawer').not('.pinnedOpen').toggleClass('closedDrawer openDrawer'); diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 6c5d491eb..57ecf2215 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -100,7 +100,7 @@ $("#character_popup").on("input", function () { RA_CountCharTokens(); }); //function: function RA_CountCharTokens() { $("#result_info").html(""); - console.log('RA_TC -- starting with this_chid = ' + this_chid); + //console.log('RA_TC -- starting with this_chid = ' + this_chid); if (document.getElementById('name_div').style.display == "block") { //if new char $("#form_create").on("input", function () { //fill temp vars with form_create values @@ -165,7 +165,7 @@ function RA_CountCharTokens() { //Auto Load Last Charcter -- (fires when active_character is defined and auto_load_chat is true) async function RA_autoloadchat() { if (document.getElementById('CharID0') !== null) { - console.log('char list loaded! clicking activeChar'); + //console.log('char list loaded! clicking activeChar'); var CharToAutoLoad = document.getElementById('CharID' + LoadLocal('ActiveChar')); if (CharToAutoLoad != null) { CharToAutoLoad.click(); @@ -174,14 +174,14 @@ async function RA_autoloadchat() { } RestoreNavTab(); } else { - console.log('no char list yet..'); + //console.log('no char list yet..'); setTimeout(RA_autoloadchat, 100); // if the charcter list hadn't been loaded yet, try again. } } //only triggers when AutoLoadChat is enabled, consider adding this as an independent feature later. function RestoreNavTab() { if ($('#rm_button_selected_ch').children("h2").text() !== '') { //check for a change in the character edit tab name - console.log('detected ALC char finished loaded, proceeding to restore tab.'); + //console.log('detected ALC char finished loaded, proceeding to restore tab.'); $(SelectedNavTab).click(); //click to restore saved tab when name has changed (signalling char load is done) } else { setTimeout(RestoreNavTab, 100); //if not changed yet, check again after 100ms @@ -244,7 +244,7 @@ function RA_autoconnect(PrevApi) { RA_AC_retries++; retry_delay = Math.min(retry_delay * 2, 30000); // double retry delay up to to 30 secs - console.log('connection attempts: ' + RA_AC_retries + ' delay: ' + (retry_delay / 1000) + 's'); + //console.log('connection attempts: ' + RA_AC_retries + ' delay: ' + (retry_delay / 1000) + 's'); setTimeout(RA_autoconnect, retry_delay); } } @@ -290,7 +290,7 @@ $("document").ready(function () { // read the state of Nav Lock and apply to rightnav classlist $(PanelPin).prop('checked', LoadLocalBool("NavLockOn")); if (LoadLocalBool("NavLockOn") == true) { - console.log('setting pin class via local var'); + //console.log('setting pin class via local var'); $(RightNavPanel).addClass('pinnedOpen'); } if ($(PanelPin).prop('checked' == true)) {