diff --git a/src/init.js b/src/init.js index 0a70e0ae..67e36d73 100644 --- a/src/init.js +++ b/src/init.js @@ -80,13 +80,15 @@ function saveEditorAsHTMLFile(onlyReturnData = false) { body.innerHTML = document.querySelector('body').innerHTML; body.querySelector(".CodeMirror").remove(); - name = head.querySelector("title").innerHTML.replaceAll(":", ""); + name = head.querySelector("title").innerHTML.replace(/:/g, ''); if (!document.body.hasAttribute("offline")){ body.innerHTML += `