fixed login loop
This commit is contained in:
+2
-6
@@ -181,7 +181,6 @@
|
||||
<iframe id="iframeViewer" class="w-full h-full border-none" sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-downloads allow-modals"></iframe>
|
||||
<div id="iframeLoader" class="absolute inset-0 bg-white flex items-center justify-center">
|
||||
<div class="text-center">
|
||||
<div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"></div>
|
||||
<div class="text-gray-600 text-lg">Loading content...</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -881,6 +880,7 @@
|
||||
const iframeViewerModal = document.getElementById('iframeViewerModal');
|
||||
const iframeViewer = document.getElementById('iframeViewer');
|
||||
const iframeLoader = document.getElementById('iframeLoader');
|
||||
iframeLoader.style.display = 'none'; // disable loader overlay entirely
|
||||
const iframeTitle = document.getElementById('iframeTitle');
|
||||
const iframeBackBtn = document.getElementById('iframeBackBtn');
|
||||
const iframeCloseBtn = document.getElementById('iframeCloseBtn');
|
||||
@@ -1019,7 +1019,6 @@
|
||||
iframeLoader.classList.remove('hidden');
|
||||
iframeLoader.innerHTML = `
|
||||
<div class="text-center">
|
||||
<div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"></div>
|
||||
<div class="text-gray-600 text-lg">Loading preview...</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -1213,7 +1212,6 @@
|
||||
iframeLoader.classList.remove('hidden');
|
||||
iframeLoader.innerHTML = `
|
||||
<div class="text-center">
|
||||
<div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"></div>
|
||||
<div class="text-gray-600 text-lg">Loading preview...</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -1366,11 +1364,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// If not cached, show loading and fetch
|
||||
// If not cached, show a simple loading state (no spinner)
|
||||
iframeLoader.classList.remove('hidden');
|
||||
iframeLoader.innerHTML = `
|
||||
<div class="text-center">
|
||||
<div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"></div>
|
||||
<div class="text-gray-600 text-lg">Loading files...</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -1457,7 +1454,6 @@
|
||||
iframeLoader.classList.remove('hidden');
|
||||
iframeLoader.innerHTML = `
|
||||
<div class="text-center">
|
||||
<div class="inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"></div>
|
||||
<div class="text-gray-600 text-lg">Loading content...</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user