Skip to content

Commit 12d65fb

Browse files
committed
fix: prevent double initialization of the application
1 parent e583a87 commit 12d65fb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,15 +1374,6 @@ function setupUserAvatarEventListeners() {
13741374

13751375
// Initialize the application
13761376
async function initializeApplication() {
1377-
<<<<<<< Updated upstream
1378-
=======
1379-
// Prevent double initialization
1380-
if (window._appInitialized) {
1381-
console.log('🚀 Application already initialized, skipping...');
1382-
return;
1383-
}
1384-
1385-
>>>>>>> Stashed changes
13861377
try {
13871378
console.log('🚀 Initializing Presto application...');
13881379

@@ -1466,12 +1457,6 @@ async function initializeApplication() {
14661457
} catch (error) {
14671458
console.error('❌ Failed to initialize application:', error);
14681459
NotificationUtils.showNotificationPing('Failed to initialize app. Please refresh! 🔄', 'error');
1469-
<<<<<<< Updated upstream
1470-
=======
1471-
1472-
// Reset initialization flag on error so user can retry
1473-
window._appInitialized = false;
1474-
>>>>>>> Stashed changes
14751460
}
14761461
}
14771462

0 commit comments

Comments
 (0)