mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 04:40:27 -04:00
Fix transform to desktop
This commit is contained in:
parent
2928134393
commit
eb2222eb23
@ -55,7 +55,7 @@ var prefix = (window.location.protocol + '//' + window.location.host + window.lo
|
|||||||
function filterCSS (zl, zim, cc, cs, i) {
|
function filterCSS (zl, zim, cc, cs, i) {
|
||||||
var rtnFunction = 'injectCSS';
|
var rtnFunction = 'injectCSS';
|
||||||
if ((zim !== cs) && zl.match(/(-\/(?:s\/css_modules\/|mw\/)?style\.css)|minerva|mobile|parsoid/i)) { // If it's the wrong ZIM type and style matches main styles...
|
if ((zim !== cs) && zl.match(/(-\/(?:s\/css_modules\/|mw\/)?style\.css)|minerva|mobile|parsoid/i)) { // If it's the wrong ZIM type and style matches main styles...
|
||||||
if (zl.match(/-\/(?:s\/|mw\/)?style\.css|minerva|style-mobile\.css/i)) { // If it matches one of the required styles...
|
if (zl.match(/-\/(?:s\/|mw\/)?style\.css|minerva|style-mobile\.css|base\.css/i)) { // If it matches one of the required styles...
|
||||||
zl = (cs === 'mobile') ? prefix + '-/s/style-mobile.css' : prefix + '-/s/style.css'; // Take it from cache, because not in the ZIM
|
zl = (cs === 'mobile') ? prefix + '-/s/style-mobile.css' : prefix + '-/s/style.css'; // Take it from cache, because not in the ZIM
|
||||||
console.log('Matched #' + i + ' [' + zl + '] from local filesystem because style is not in ZIM' +
|
console.log('Matched #' + i + ' [' + zl + '] from local filesystem because style is not in ZIM' +
|
||||||
'\nbut your display options require a ' + cs + ' style');
|
'\nbut your display options require a ' + cs + ' style');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user