mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-12-17 17:43:40 +00:00
Add URL params parsing and concept of "embedded mode"
This commit is contained in:
@@ -295,6 +295,11 @@ function loadOptions() {
|
||||
})));
|
||||
$("#spots-to-fetch").val(options["web-ui-options"]["spot-count-default"]);
|
||||
|
||||
// Load URL params. These may select things from the various filter & display options, so the function needs
|
||||
// to be called after these are set up, but if the URL params ask for "embedded mode", this will suppress
|
||||
// loading settings, so this needs to be called before that.
|
||||
loadURLParams();
|
||||
|
||||
// Load settings from settings storage now all the controls are available
|
||||
loadSettings();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user