Skip to content

Commit 9595798

Browse files
committed
Minor change, bug fixing
1 parent 851b31b commit 9595798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ function savePreviewCode(event){
35263526
let html_code_to_preview = document.createElement('div');
35273527
html_code_to_preview.innerHTML = html_target.querySelector(".html").innerText;
35283528
let css_elements = html_code_to_preview.querySelectorAll("[rel='stylesheet']");
3529-
let js_elements = html_code_to_preview.querySelectorAll('script[src]');
3529+
let js_elements = html_code_to_preview.querySelectorAll('script[src]:not([src^="http:"]):not([src^="https:"]):not([src^="//"])');
35303530
let css_idx = 0;
35313531
let js_idx = 0;
35323532
chat_box.querySelectorAll(".css").forEach(css=>{

0 commit comments

Comments
 (0)