Skip to content

Commit

Permalink
fix: make splash not assume config file (origo-map#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grammostola authored Oct 27, 2023
1 parent fd09146 commit ac095cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controls/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ const Splash = function Splash(options = {}) {
component = this;
viewer = evt.target;
target = viewer.getId();
contentKey = `splashContent;${window.location.pathname};${viewer.getMapName().split('.')[0]}`;
visibilityKey = `splashVisibility;${window.location.pathname};${viewer.getMapName().split('.')[0]}`;
const mapName = viewer.getMapName() ? viewer.getMapName().split('.')[0] : 'inline';
contentKey = `splashContent;${window.location.pathname};${mapName}`;
visibilityKey = `splashVisibility;${window.location.pathname};${mapName}`;
if (!title) title = defaultTitle;
if (!content) content = defaultContent;

Expand Down

0 comments on commit ac095cf

Please sign in to comment.