From 31cccfd338e042b4d5f846be7406737bd31e769c Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Wed, 22 Jan 2020 22:59:24 +0000 Subject: [PATCH] Remove broken links to Portable version of archives Former-commit-id: 068f02297e325127a39de703b9d415b7f8821364 [formerly eb5d2fc0189ec81dc90fabb1820f42555a68ad9d] Former-commit-id: 76e5e9ef01764a3dbaaf1c2396897131055c4a28 --- www/js/lib/kiwixServe.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/js/lib/kiwixServe.js b/www/js/lib/kiwixServe.js index d1b02259..ab9a3c40 100644 --- a/www/js/lib/kiwixServe.js +++ b/www/js/lib/kiwixServe.js @@ -429,10 +429,10 @@ define([], function () { '

BitTorrent link: ' + URL.replace(/\.meta4$/, ".torrent") + '

'; if (megabytes > 4000 && /\.zim\.meta4$/i.test(URL)) { - bodyDoc += '

This archive is larger than the maximum file size permitted on an SD card formatted as FAT32 (max size is approx. 4GB). On Windows, this is not normally a problem. However, if your card or other storage area is formatted in this way, you will need to download a split version of this file: see Frequently Asked Questions.

\r\n'; - bodyDoc += '

To browse for a split version of this archive click here: ' + URL.replace(/\/zim\/([^/]+\/).*$/m, "/portable/$1") + - '.

\r\n'; + bodyDoc += '

This archive is larger than the maximum file size permitted on an SD card formatted as FAT32 (max size is approx. 4GB). On Windows, this is not normally a problem. However, if your card or other storage area is formatted in this way, you will need to download a split version of this file: see Frequently Asked Questions.

\r\n'; + // bodyDoc += '

To browse for a split version of this archive click here: ' + URL.replace(/\/zim\/([^/]+\/).*$/m, "/portable/$1") + + // '.

\r\n'; } if (/\.zip\.meta4$/i.test(URL)) { if (megabytes > 4000) bodyDoc += '

This ZIP file contains a split version of the archive, but the ZIP itself is larger than the maximum file size permitted on an SD card formatted as FAT32. Be sure to save it in a non-FAT32 location (e.g. a PC hard drive).

\r\n';