Correct test

Former-commit-id: 422f5060771c7d93a6035454a177c09a14685ada [formerly 0a7ec58118d9b63b0697aaf8d77a476f1f58c617]
Former-commit-id: 4716ae2d63ab17bd556a67ef21f1d01b3a783e78
This commit is contained in:
Jaifroid 2018-04-03 18:14:14 +01:00
parent a6128f295b
commit aa52fbb6e8

View File

@ -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";