mirror of
https://github.com/jstrieb/urlpages.git
synced 2024-12-22 13:52:15 +01:00
Fix accidental, error-causing removal
This commit is contained in:
parent
ad2ebc17c4
commit
801ed5ed85
1 changed files with 2 additions and 2 deletions
|
@ -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))}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue