Skip to content

Commit

Permalink
Fixed api example theme handling (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored Mar 23, 2017
1 parent fefd3d2 commit 2f36b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions web/client/examples/api/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ function init() {
defaultState: cfg.state
} || null,
style: cfg && cfg.customStyle,
theme: {
theme,
theme: theme ? {
theme: theme,
path: '../../dist/themes'
} : {
path: '../../dist/themes'
}
});
Expand Down
1 change: 0 additions & 1 deletion web/client/jsapi/MapStore2.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ const MapStore2 = {
ThemeUtils.renderFromLess(options.style, 'custom_theme', 'themes/default/');
}
const defaultThemeCfg = {
theme: 'default',
prefixContainer: '#' + container
};

Expand Down

0 comments on commit 2f36b06

Please sign in to comment.