Skip to content

Commit

Permalink
Added parameters to enable printing end to load version in MapStore2 …
Browse files Browse the repository at this point in the history
…api (#3049)

* Added parameters to enable printing end to load version in MapStore2 api

* Fixed
  • Loading branch information
kappu72 authored and mbarto committed Jul 9, 2018
1 parent bfaf561 commit 6f310a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/jsapi/MapStore2.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ const MapStore2 = {
}, {
jsAPIEpic: actionTrigger.epic
});
const initialActions = [...getInitialActions(options), loadVersion];
const initialActions = [...getInitialActions(options), loadVersion.bind(null, options.versionURL)];
const appConfig = {
storeOpts: assign({}, storeOpts, {notify: true}),
appStore,
pluginsDef,
initialActions,
appComponent: StandardRouter,
printingEnabled: false
printingEnabled: options.printingEnabled || false
};
if (options.style) {
let dom = document.getElementById('custom_theme');
Expand Down

0 comments on commit 6f310a4

Please sign in to comment.