We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 851b31b commit 9595798Copy full SHA for 9595798
js/script.js
@@ -3526,7 +3526,7 @@ function savePreviewCode(event){
3526
let html_code_to_preview = document.createElement('div');
3527
html_code_to_preview.innerHTML = html_target.querySelector(".html").innerText;
3528
let css_elements = html_code_to_preview.querySelectorAll("[rel='stylesheet']");
3529
- let js_elements = html_code_to_preview.querySelectorAll('script[src]');
+ let js_elements = html_code_to_preview.querySelectorAll('script[src]:not([src^="http:"]):not([src^="https:"]):not([src^="//"])');
3530
let css_idx = 0;
3531
let js_idx = 0;
3532
chat_box.querySelectorAll(".css").forEach(css=>{
0 commit comments