mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-29 01:02:42 -04:00
Fixed evaluation of third-party scripts when using instant loading
This commit is contained in:
@@ -304,7 +304,8 @@ export function setupInstantLoading(
|
||||
concatMap(el => {
|
||||
const script = createElement("script")
|
||||
if (el.src) {
|
||||
script.src = el.src
|
||||
for (const name of el.getAttributeNames())
|
||||
script.setAttribute(name, el.getAttribute(name)!)
|
||||
replaceElement(el, script)
|
||||
|
||||
/* Complete when script is loaded */
|
||||
|
||||
Reference in New Issue
Block a user