Skip to content

Commit 526c262

Browse files
committed
Refactor production access logging in index.html to clarify debug tool restrictions on production domains
1 parent 955922c commit 526c262

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SortVision/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@
125125
console.log('%c SortVision: Checking URL parameters... found cr7=' + debugParam,
126126
'background: #1a1a2e; color: #64ffda; font-size: 12px; padding: 4px; border-radius: 4px;');
127127

128-
// If on production, verify the special parameter is present
129-
if (isProductionDomain && !hasDebugParam) {
130-
console.log('%c🔒 SortVision DevTools Access Denied 🔒\n✨ Production deployment requires debug parameter ✨',
128+
// Always block access on production domains
129+
if (isProductionDomain) {
130+
console.log('%c🔒 SortVision DevTools Access Denied on Production 🔒\n✨ Debug tools are disabled on production deployments ✨',
131131
'background: #dc2626; color: #ffffff; padding: 6px 10px; border-radius: 4px; font-weight: bold; font-size: 14px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); box-shadow: inset 0 0 6px rgba(0,0,0,0.2); border-left: 4px solid #7f1d1d;');
132132
return;
133133
}

0 commit comments

Comments
 (0)