kiwix-js-pwa
kiwix-js-pwa copied to clipboard
Poor display of ifixit ZIMs in UWP app
Compare the UWP app's rendering below with the Electron app's rendering (bottom). I guess this is caused by the ifixit site not supporting Edge Legacy any more (the browser used in the UWP HTML/JS app webview), which is a shame. Electron uses latest Chrome.
While I can make a UWP app using WebView2, which uses Chromium, there are no UWP file access APIs incorporated, and we'd fall back to using the File System Access API. But in that case, why bother wrapping the app in UWP, when a PWA does the same job? The other disadvantage is leaving behind Windows Mobile users, though I think there must be only about 5 of us left (and also, such devices only support jQuery mode).
There may be a way to use WinRT APIs in a PWA running in WebView2. This has just been announced: Call native-side WinRT code from web-side code. I've placed an issue on https://github.com/pwa-builder/PWABuilder/issues/3104 to see if they might incorporate it into their solution.
The display is correct in Service Worker mode, so this may need an active content warning.
This issue isn't UWP-specific, it is caused by lack of parsing CSS for ZIM links in jQuery mode. Since the aim is to switch to SW mode as default, I don't think this needs to be fixed.