fix source flavors (#1388)

* fix load flavor

* Update docs/assets/scripts/code-previews.js

* fix previews

---------

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
This commit is contained in:
Konnor Rogers
2023-06-21 11:12:09 -04:00
committed by GitHub
parent 985d4585c4
commit 8e831aa3e7

View File

@@ -1,4 +1,4 @@
(() => {
function run() {
function convertModuleLinks(html) {
html = html
.replace(/@shoelace-style\/shoelace/g, `https://cdn.skypack.dev/@shoelace-style/shoelace@${shoelaceVersion}`)
@@ -243,4 +243,7 @@
form.remove();
}
});
})();
}
run();
document.addEventListener('turbo:load', run);