mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix firefox data uri popup cocksex in notes/create
This commit is contained in:
parent
a4454ab7a0
commit
ef7b4b6c3e
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
|||
window._preview = undefined;
|
||||
}
|
||||
|
||||
window._preview = window.open("data:text/html,", "_blank", { popup: true });
|
||||
window._preview = window.open("about:blank", "_blank", { popup: true });
|
||||
window._preview.document.write(`<style>form { display: none; }</style><form action="${ location.origin }/notes/prerender" method="POST" enctype="multipart/form-data"><input name="title" /><input name="html" /><input name="hash" /></form>`);
|
||||
window._preview.document.querySelector("input[name=title]").value = document.querySelector("input[name=name]").value;
|
||||
window._preview.document.querySelector("input[name=html]").value = window._editor.getValue();
|
||||
|
|
Loading…
Reference in a new issue