- Fix: Ensure PHP files are present in dist/extensions alongside JavaScript files using them

- Fix: Bug in obtaining `extPath` in ext-server_opensave.js
- Enhancement: Add config `avoidClientSide` to avoid using client-side support by default (and always require server)
- Build: Require Node 8.5
This commit is contained in:
Brett Zamir
2019-04-18 21:13:48 +08:00
parent 1d56d75837
commit 13835a368c
18 changed files with 397 additions and 207 deletions

View File

@@ -14,7 +14,7 @@ export default {
const strings = await importLocale();
const svgEditor = this;
const {
curConfig: extPath,
curConfig: {extPath, avoidClientSide},
canvas: svgCanvas
} = svgEditor;
@@ -44,6 +44,9 @@ export default {
* @returns {boolean}
*/
function clientDownloadSupport (filename, suffix, uri) {
if (avoidClientSide) {
return false;
}
const support = $('<a>')[0].download === '';
let a;
if (support) {