Fix accidental, error-causing removal

This commit is contained in:
Jacob Strieb 2020-05-15 01:17:25 -04:00
parent ad2ebc17c4
commit 801ed5ed85
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ function update() {
"html" : document.getElementById("html").value
};
var html = getHTML(data);
var html = encodeURIComponent(getHTML(data));
// Save encoded page data to the URL
window.location.hash = "#" + b64.encode(JSON.stringify(data));
@ -124,5 +124,5 @@ function update() {
document.getElementById("downloadLink").href = `data:text/html,${html}`
// Update the <iframe> to display the generated page
window.frames[0].location.replace(`data:text/html;charset=utf-8;base64,${b64.encode(html)}`);
window.frames[0].location.replace(`data:text/html;charset=utf-8;base64,${b64.encode(decodeURIComponent(html))}`);
}