From 6ec18b0f94d2b17698f7c29d9d5ddc6fe615f660 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Wed, 1 Feb 2023 20:23:06 +0000 Subject: [PATCH] Prevent display of irrelevant information about UWP app --- www/js/lib/kiwixServe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/lib/kiwixServe.js b/www/js/lib/kiwixServe.js index 05bb3b29..7e10fd33 100644 --- a/www/js/lib/kiwixServe.js +++ b/www/js/lib/kiwixServe.js @@ -477,7 +477,7 @@ define([], function () { } var headerDoc = 'We found the following links to your file:'; var bodyDoc = '

<< Back to list of files

\r\n'; - bodyDoc += /\/(ted|videos)\//i.test(URL) ? '

IMPORTANT: VIDEOS (e.g. TED Talks, Khan Academy, etc.) can be played in the UWP app on Windows 10, but on Windows 10 Mobile you may need to play the videos with an external app such as VLC Media Player (from the Store).

\r\n

Please note if you cannot switch to Service Worker mode (see Configuration - Expert Settings) you will need to search for the videos using standard ZIM search or by typing a space in search to show the ZIM Archive Index, because the ZIM\'s proprietary UI does not work in JQuery mode.' : ''; + bodyDoc += /\/(ted|videos)\//i.test(URL) && /UWP/.test(params.appType) ? '

IMPORTANT: VIDEOS (e.g. TED Talks, Khan Academy, etc.) can be played in the UWP app on Windows 10, but on Windows 10 Mobile you may need to play the videos with an external app such as VLC Media Player (from the Store).

\r\n

Please note if you cannot switch to Service Worker mode (see Configuration - Expert Settings) you will need to search for the videos using standard ZIM search or by typing a space in search to show the ZIM Archive Index, because the ZIM\'s proprietary UI does not work in JQuery mode.' : ''; bodyDoc += /\/gutenberg\//i.test(URL) ? '

You can read Gutenberg books in this app, but please note that if you cannot switch to Service Worker mode (see Configuration - Expert Settings) you will need to search for books using standard or wildcard ZIM search (e.g. \'.*quixote\') or by typing a space in search to show the ZIM Archive Index, because the ZIM\'s proprietary UI does not work in JQuery mode.' : ''; bodyDoc += " 2000 ? ' style="color:red;"> WARNING: ' : '>';