forked from extern/the-glorious-startpage
make city mode as default in weather settings
This commit is contained in:
parent
1ba11727dd
commit
eb8470636d
@ -104,8 +104,8 @@
|
||||
<div class='weatherSettingsGroups' id='weatherSettingsUnitsSelect'>
|
||||
<label for='weatherSelectUnits' class='weatherSettingsLabels'>Locator Mode</label>
|
||||
<select class='weatherSettingsInputs' id='weatherSelectLocator'>
|
||||
<option value='geolocation'>Geolocation</option>
|
||||
<option value='city'>City</option>
|
||||
<option value='geolocation'>Geolocation</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
@ -60,7 +60,7 @@ class WeatherSettings {
|
||||
this._apiKeySet.value = '';
|
||||
this._cityIDSet.value = '';
|
||||
this._weatherSelectUnits.value = 'metric';
|
||||
this._weatherSelectLocator.value = 'geolocation';
|
||||
this._weatherSelectLocator.value = 'city';
|
||||
}
|
||||
|
||||
// Apply credentials
|
||||
@ -76,7 +76,7 @@ class WeatherSettings {
|
||||
this._appID = this._localStorage.getItem('apiKey') || 'API Key';
|
||||
this._cityID = this._localStorage.getItem('cityID') || 'City ID';
|
||||
this._units = this._localStorage.getItem('units') || 'metric';
|
||||
this._locatorMode = this._localStorage.getItem('locatorMode') || 'geolocation';
|
||||
this._locatorMode = this._localStorage.getItem('locatorMode') || 'city';
|
||||
}
|
||||
|
||||
// Update textbox placeholders
|
||||
|
Loading…
Reference in New Issue
Block a user