mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 03:37:12 -04:00
Correct test
Former-commit-id: 422f5060771c7d93a6035454a177c09a14685ada [formerly 0a7ec58118d9b63b0697aaf8d77a476f1f58c617] Former-commit-id: 4716ae2d63ab17bd556a67ef21f1d01b3a783e78
This commit is contained in:
parent
a6128f295b
commit
aa52fbb6e8
@ -853,7 +853,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module'
|
||||
//@TODO - this is initialization code, and should be in init.js (withoug jQuery)
|
||||
$('input:radio[name=cssInjectionMode]').filter('[value="' + params.cssSource + '"]').prop('checked', true);
|
||||
//DEV this hides file selectors if it is a packaged file -- add your own packaged file test to regex below
|
||||
if (/wikivoyage|wikimed/i.test(params.fileVersion)) {
|
||||
if (/wikivoyage|medicine/i.test(params.fileVersion)) {
|
||||
document.getElementById('packagedAppFileSelectors').style.display = "block";
|
||||
document.getElementById('hideFileSelectors').style.display = "none";
|
||||
document.getElementById('downloadLinksText').style.display = "none";
|
||||
|
Loading…
x
Reference in New Issue
Block a user