From 5dba8992c90a1715aaef3da2c75f4bf88ce7e318 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 11 Jul 2024 21:49:58 +0100 Subject: [PATCH] Detect PhET ZIMs for active content warning Fixes #624 --- 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 9b4723e0..a51fa100 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -5881,7 +5881,7 @@ params.regexpTagsWithZimUrl = /(<(?:img|script|link)\b[^>]*?\s)(?:src|href)(\s*= // fully supported wikimedia ZIMs, so they are excluded); 4) the script block is not of type "math" (these are MathJax markup scripts used // extensively in Stackexchange ZIMs). Note that the regex will match ReactJS