LIBERATED AI CHAT
TypeScript
fix: make No-Log Mode functional — gate telemetry collection, clear buffer on enable
faber466d489a2ffb
diff --git a/index.html b/index.htmlindex 44be6c1..4aa7c0d 100644--- a/index.html+++ b/index.html@@ -3666,7 +3666,7 @@<input type="checkbox" id="noLogMode" checked><label for="noLogMode" style="margin: 0;">No-Log Mode</label></div>- <small style="color: #888; display: block; margin-top: 4px;">Privacy preference — recorded in local telemetry metadata only. Does not change provider-side logging.</small>+ <small style="color: #888; display: block; margin-top: 4px;">Disables G0DM0D3 usage telemetry. Does not affect provider-side (OpenRouter/Venice) logging.</small></div></div><div class="settings-section">@@ -4283,6 +4283,8 @@};function trackEvent(type, data) {+ if (state.noLogMode) return;+const event = {type,timestamp: Date.now(),@@ -14286,7 +14288,6 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;persona: conv.persona || state.persona || 'godmode',prompt_length: content.length,conversation_depth: conv.messages.length,- no_log: !!state.noLogMode,has_image: !!attachedImage,};@@ -16502,6 +16503,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;state.customSystemPrompt = document.getElementById('customSystemPromptInput').value;updateSystemPromptUI();state.noLogMode = document.getElementById('noLogMode').checked;+ if (state.noLogMode) { _telemetry.buffer.length = 0; }state.showMagic = document.getElementById('showMagic').checked;state.waitingGame = document.getElementById('waitingGameSelect').value;state.autoRetry = document.getElementById('autoRetry').checked;