Fix: fix the default src of empty iframe to avoid loading index page

This commit is contained in:
cuixiping
2020-01-07 18:14:05 +08:00
parent eea489e602
commit d0348ddf4e
4 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ export default {
// with `getBBox` in browser.js `supportsPathBBox_`)
/* const target = */ $(
`<iframe name="output_frame" title="${strings.hiddenframe}"
style="width: 0; height: 0;" src="#"/>`
style="width: 0; height: 0;" src="data:text/html;base64,PGh0bWw+PC9odG1sPg=="/>`
).appendTo('body');
svgEditor.setCustomHandlers({