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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user