diff --git a/src/editor/extensions/ext-server_opensave/ext-php_savefile.js b/src/editor/extensions/ext-server_opensave/ext-php_savefile.js index 9284b7d0..48564e47 100644 --- a/src/editor/extensions/ext-server_opensave/ext-php_savefile.js +++ b/src/editor/extensions/ext-server_opensave/ext-php_savefile.js @@ -22,7 +22,15 @@ export default { const svg = '\n' + data, filename = getFileNameFromTitle(); - $.post(saveSvgAction, { output_svg: svg, filename }); + // $.post(saveSvgAction, { output_svg: svg, filename }); + let postData = { output_svg: svg, filename }; + fetch(saveSvgAction, { + method: "POST", + body: JSON.stringify(postData) + }).then( (res) => { + return res; + }) + .catch( (error) => { console.info('error =', error);}); } }); }