fixed few effects bugs

This commit is contained in:
viliusle 2021-04-06 23:12:39 +03:00
parent f2cf1b6737
commit ae39fd5f0b
2 changed files with 5 additions and 1 deletions

View File

@ -130,7 +130,10 @@ class Effects_browser_class extends Base_tools_class {
get_function_from_path(path){
var parts = path.split("/");
return parts[parts.length - 1];
var result = parts[parts.length - 1];
result = result.replace(/-/, '_');
return result;
}
}

View File

@ -1,4 +1,5 @@
import app from '../../../app.js';
import config from '../../../config.js';
import Dialog_class from '../../../libs/popup.js';
import Base_layers_class from '../../../core/base-layers.js';
import alertify from 'alertifyjs/build/alertify.min.js';