Skip to content

Commit c03bc6a

Browse files
authored
Update live-view.js
1 parent de58fc2 commit c03bc6a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

live-view.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,7 @@ async function fetchLiveViewScripts(frameDocument) {
700700

701701
} else {
702702

703-
let resp = await axios.get(script.src);
704-
705-
addScript(frameDocument, resp, '', script.type);
703+
addScript(frameDocument, false, script.src, script.type);
706704

707705
// delete original
708706
script.remove();
@@ -711,7 +709,7 @@ async function fetchLiveViewScripts(frameDocument) {
711709

712710
} else {
713711

714-
addScript(frameDocument, script.textContent, '', script.type);
712+
addScript(frameDocument, script.textContent, false, script.type);
715713

716714
// delete original
717715
script.remove();

0 commit comments

Comments
 (0)