Skip to content

Commit f592ab5

Browse files
committed
fix element reference
1 parent ebe5b2d commit f592ab5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
.then(html => {
6767
// Set the current document's HTML to the fetched content
6868
document.documentElement.innerHTML = html;
69-
// After setting `elm.innerHTML = ...`, run scripts manually
70-
elm.querySelectorAll('script').forEach(oldScript => {
69+
// After setting `document.documentElement.innerHTML = ...`, run scripts manually
70+
document.documentElement.querySelectorAll('script').forEach(oldScript => {
7171
const newScript = document.createElement('script');
7272
// copy over all attributes (e.g. src, type, async, etc.)
7373
for (const { name, value } of oldScript.attributes) {
@@ -92,5 +92,4 @@ jobs:
9292
branch: gh-pages # The branch the action should deploy to.
9393
folder: docs # The folder the action should deploy.
9494
target-folder: .
95-
clean: true
9695
single-commit: true

0 commit comments

Comments
 (0)