Skip to content

Commit

Permalink
add entryDir option
Browse files Browse the repository at this point in the history
  • Loading branch information
usbsync committed May 16, 2024
1 parent 05409fb commit 125f585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/util/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,15 @@ Entry.init = function(container, options) {
const setDefaultPathsFromOptions = function(options) {
const {
libDir = '/lib',
entryDir = '/@entrylabs/entry',
defaultDir = '',
soundDir = '',
blockInjectDir = '',
baseUrl = location.origin || 'https://playentry.org',
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;
Expand Down

0 comments on commit 125f585

Please sign in to comment.