diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 9d46be7..5f77305 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -178,8 +178,11 @@ compass.className = 'pnlm-compass pnlm-controls pnlm-control'; container.appendChild(compass); // Load and process configuration -if (initialConfig.default && initialConfig.default.firstScene) { - // Activate first scene if specified +if (initialConfig.firstScene) { + // Activate first scene if specified in URL + mergeConfig(initialConfig.firstScene); +} else if (initialConfig.default && initialConfig.default.firstScene) { + // Activate first scene if specified in file mergeConfig(initialConfig.default.firstScene); } else { mergeConfig(null);