- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user