adding pdf and image viewer

This commit is contained in:
DioCrafts
2025-04-02 01:22:05 +02:00
parent 09e37ee677
commit 705cb5b069
20 changed files with 1716 additions and 16 deletions
+9
View File
@@ -56,6 +56,15 @@ function initApp() {
console.log('Using standard file rendering');
}
// Check if inline viewer is initialized
if (window.inlineViewer) {
console.log('Inline viewer is available');
} else {
console.warn('Inline viewer not initialized yet, will initialize it now');
// Create inline viewer if not already created
window.inlineViewer = new InlineViewer();
}
// Wait for translations to load before checking authentication
if (window.i18n && window.i18n.isLoaded && window.i18n.isLoaded()) {
// Translations already loaded, proceed with authentication