mirror of
https://github.com/zensical/zensical.git
synced 2026-08-25 16:46:43 +00:00
zensical:fix - iframe-worker not loaded in offline mode
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
@@ -671,7 +671,14 @@ def _convert_plugins(value: any, config: dict) -> list:
|
||||
"iframe-worker" in url for url in config["extra"]["polyfills"]
|
||||
):
|
||||
script = "https://unpkg.com/iframe-worker/shim"
|
||||
config["extra"]["polyfills"].append(script)
|
||||
config["extra"]["polyfills"].append(
|
||||
{
|
||||
"path": script,
|
||||
"type": "text/javascript",
|
||||
"async": False,
|
||||
"defer": False,
|
||||
}
|
||||
)
|
||||
|
||||
# Now, add another level of indirection, by moving all plugin configuration
|
||||
# into a `config` property, making it compatible with Material for MkDocs.
|
||||
|
||||
Reference in New Issue
Block a user