Encryption module control system & session timer improvements

- Added a real verification system for active encryption modules, giving users full control over enabled modules.
- During session purchase or activation, the actual enabled modules are now displayed for both free and paid sessions.
- Refactored session timer initialization for proper functionality and accurate countdown.
- Optimized code structure related to session management and module verification.
This commit is contained in:
lockbitchat
2025-08-17 20:38:47 -04:00
parent 8d35a309a5
commit 857d7d74ab
10 changed files with 1470 additions and 521 deletions

View File

@@ -1079,12 +1079,12 @@ const PWAOfflineManager = {
// Export for module use
if (typeof module !== 'undefined' && module.exports) {
module.exports = PWAOfflineManager;
} else {
} else if (typeof window !== 'undefined' && !window.PWAOfflineManager) {
window.PWAOfflineManager = PWAOfflineManager;
}
// Auto-initialize when DOM is ready
if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && !window.pwaOfflineManager) {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
if (!window.pwaOfflineManager) {