Skip to content

Commit 954b4fd

Browse files
committed
lint
1 parent 2c7d95d commit 954b4fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/svelte/src/internal/client/reconciler.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export function create_fragment_with_script_from_html(html) {
1818
var content = create_fragment_from_html(html);
1919
var scripts = content.querySelectorAll('script');
2020
for (const script of scripts) {
21-
var newScript = document.createElement('script');
21+
var new_script = document.createElement('script');
2222
for (var i = 0; i < script.attributes.length; i++) {
23-
newScript.setAttribute(script.attributes[i].name, script.attributes[i].value);
23+
new_script.setAttribute(script.attributes[i].name, script.attributes[i].value);
2424
}
25-
newScript.textContent = script.textContent;
26-
/** @type {Node} */ (script.parentNode).replaceChild(newScript, script);
25+
new_script.textContent = script.textContent;
26+
/** @type {Node} */ (script.parentNode).replaceChild(new_script, script);
2727
}
2828
return content;
2929
}

0 commit comments

Comments
 (0)