Skip to content

Commit

Permalink
Feature: Allow m query parameter when no backend is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallbergs committed Mar 7, 2024
1 parent 761fe69 commit eb5be27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions new-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ try {
// Prepare a helper function that fetches config files
const fetchConfig = async () => {
if (useBackend === false) {
// No backend specified, let's return static config
return await hfetch("simpleMapAndLayersConfig.json", {
// Load the user specified consolidated map and layers config, or fall back to default one
const simpleConfig = `${initialURLParams.get("m") || "simpleMapAndLayersConfig"}.json`;
return await hfetch(simpleConfig, {
cacheBuster: true,
});
} else {
Expand Down

0 comments on commit eb5be27

Please sign in to comment.