From c528c94924086f61a8def8a352bed0bde78943d4 Mon Sep 17 00:00:00 2001
From: Jaifroid <egk10@cam.ac.uk>
Date: Thu, 25 Jan 2024 16:52:08 +0000
Subject: [PATCH] Add 'zimit' to test for scraper name

Partially addresses #1203
---
 www/js/lib/zimArchive.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/js/lib/zimArchive.js b/www/js/lib/zimArchive.js
index ac5bcf5f8..2aa84a816 100644
--- a/www/js/lib/zimArchive.js
+++ b/www/js/lib/zimArchive.js
@@ -263,7 +263,7 @@ ZIMArchive.prototype.setZimType = function () {
         });
         if (archiveType !== 'zimit' && this.scraper) {
             // Check if it's a zimit2 type archive by seeing if the scraper contains 'warc2zim'
-            archiveType = /warc2zim/i.test(this.scraper) ? 'zimit2' : archiveType;
+            archiveType = /warc2zim|zimit/i.test(this.scraper) ? 'zimit2' : archiveType;
         }
         this.zimType = archiveType;
         console.debug('Archive type set to: ' + archiveType);