Repository navigation
v4.4.1
Fixes
- Locales under a strict CSP. The viewer no longer loads its locale map from a
blob:URL, so a page Content Security Policy only needs the locale file's origin inconnect-src:'self'for files you serve yourself, orhttps://cdn.jsdelivr.netfor the default ones. Before, it also neededconnect-src blob:, and without it every toolbar label, tooltip and accessible name was blank. (#68, #69) - English when the locale file can't load. If the locale file fails, for example with a 404, a host the CSP blocks or no network, the interface now falls back to English and the console logs a warning. Before, every control was left without a label. (#68, #69)
Upgrading
- If your CSP allows
blob:inconnect-srconly for locales, you can remove it. Keepworker-src blob:: PDF.js still starts its worker from ablob:URL.
Full changelog: v4.4.0...v4.4.1