fix: reveal mode not working when already ON at page load
If reveal mode was saved as ON in settings, the page loaded with revealMode=true and prevRevealMode=true. The checkRevealToggle function only fires on transitions (off→on or on→off), so the reveal interval was never started. Added initialization check that starts the reveal interval immediately if revealMode is already true at page load. https://claude.ai/code/session_01KF4i7Ra7zCEDskxDBaNtcT
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Silent Send",
|
||||
"version": "0.9.10",
|
||||
"version": "0.9.11",
|
||||
"description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Silent Send",
|
||||
"version": "0.9.10",
|
||||
"version": "0.9.11",
|
||||
"description": "Intercepts personal info and substitutes it with user-defined replacements before sending to AI services.",
|
||||
"permissions": [
|
||||
"storage",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "silent-send",
|
||||
"version": "0.9.10",
|
||||
"version": "0.9.11",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"description": "Browser extension that substitutes personal data before sending to AI services",
|
||||
|
||||
@@ -1715,6 +1715,14 @@
|
||||
prevRevealMode = settings.revealMode;
|
||||
}
|
||||
|
||||
// If reveal mode was already ON at page load, start the interval immediately
|
||||
if (settings.revealMode) {
|
||||
console.log('[Silent Send] Reveal mode ON (from saved settings)');
|
||||
revealInterval = setInterval(() => {
|
||||
if (settings.revealMode) revealAllResponses();
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
// Hook into config updates to detect reveal toggle
|
||||
window.addEventListener('message', (event) => {
|
||||
if (event.source !== window) return;
|
||||
|
||||
@@ -629,7 +629,7 @@
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p>Silent Send v0.9.10</p>
|
||||
<p>Silent Send v0.9.11</p>
|
||||
<p style="font-size:11px;color:#9ca3af;margin-top:6px;max-width:600px">
|
||||
Silent Send is a convenience tool, not a security guarantee. Third-party sites may change how they send data at any time, which can cause missed substitutions without warning. You are responsible for verifying your data before sending. See the <a href="https://github.com/outis1one/silent-send/blob/main/LICENSE" target="_blank" style="color:#6b7280">LICENSE</a> for full terms.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user