diff --git a/common/modules/mixly-modules/web/footerlayer-example.js b/common/modules/mixly-modules/web/footerlayer-example.js index 9a4667af..df73b161 100644 --- a/common/modules/mixly-modules/web/footerlayer-example.js +++ b/common/modules/mixly-modules/web/footerlayer-example.js @@ -78,7 +78,7 @@ class FooterLayerExampleExt extends FooterLayerExample { dataToWorkspace(inPath) { const data = goog.get(path.join(Env.boardDirPath, 'examples', inPath)); - this.updateCode(inPath.substring(inPath.lastIndexOf('.')), data); + this.updateCode(path.extname(inPath), data); } }