diff --git a/package.json b/package.json index 3bcdc57e36..88cabbb9ea 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@entrylabs/entry", "title": "EntryJS", "description": "JavaScript library for visual programming", - "version": "4.0.1", + "version": "4.0.2", "main": "dist/entry.min.js", "homepage": "https://playentry.org", "author": { diff --git a/src/util/init.js b/src/util/init.js index d27af39fc9..b57917dca7 100644 --- a/src/util/init.js +++ b/src/util/init.js @@ -116,6 +116,7 @@ Entry.init = function(container, options) { const setDefaultPathsFromOptions = function(options) { const { libDir = '/lib', + entryDir = '/@entrylabs/entry', defaultDir = '', soundDir = '', blockInjectDir = '', @@ -123,7 +124,7 @@ const setDefaultPathsFromOptions = function(options) { offlineModulePath, } = options; - Entry.mediaFilePath = `${libDir}/entry-js/images/`; + Entry.mediaFilePath = `${libDir}${entryDir}/images/`; Entry.painterBaseUrl = `${libDir}/literallycanvas-mobile/lib/img`; Entry.defaultPath = defaultDir; Entry.soundPath = soundDir;