make city mode as default in weather settings

This commit is contained in:
Gerome Matilla 2020-06-13 16:03:14 +08:00
parent 1ba11727dd
commit eb8470636d
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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