From 46e0e003f43029d178cfeacb36211e91d796f2de Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 6 May 2024 14:55:27 +0100 Subject: [PATCH] Fix unhandled exception testing selectedArchive --- www/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/app.js b/www/js/app.js index cb5c89bab..885016ef8 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1657,7 +1657,7 @@ function handleGlobalDragleave (e) { if (enteredElement === e.target) { globalDropZone.classList.remove('dragging-over'); // Only return to page if a ZIM is actually loaded - if (selectedArchive.isReady()) { + if (selectedArchive && selectedArchive.isReady()) { uiUtil.returnToCurrentPage(); } }