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'> <div class='weatherSettingsGroups' id='weatherSettingsUnitsSelect'>
<label for='weatherSelectUnits' class='weatherSettingsLabels'>Locator Mode</label> <label for='weatherSelectUnits' class='weatherSettingsLabels'>Locator Mode</label>
<select class='weatherSettingsInputs' id='weatherSelectLocator'> <select class='weatherSettingsInputs' id='weatherSelectLocator'>
<option value='geolocation'>Geolocation</option>
<option value='city'>City</option> <option value='city'>City</option>
<option value='geolocation'>Geolocation</option>
</select> </select>
</div> </div>

View File

@ -60,7 +60,7 @@ class WeatherSettings {
this._apiKeySet.value = ''; this._apiKeySet.value = '';
this._cityIDSet.value = ''; this._cityIDSet.value = '';
this._weatherSelectUnits.value = 'metric'; this._weatherSelectUnits.value = 'metric';
this._weatherSelectLocator.value = 'geolocation'; this._weatherSelectLocator.value = 'city';
} }
// Apply credentials // Apply credentials
@ -76,7 +76,7 @@ class WeatherSettings {
this._appID = this._localStorage.getItem('apiKey') || 'API Key'; this._appID = this._localStorage.getItem('apiKey') || 'API Key';
this._cityID = this._localStorage.getItem('cityID') || 'City ID'; this._cityID = this._localStorage.getItem('cityID') || 'City ID';
this._units = this._localStorage.getItem('units') || 'metric'; this._units = this._localStorage.getItem('units') || 'metric';
this._locatorMode = this._localStorage.getItem('locatorMode') || 'geolocation'; this._locatorMode = this._localStorage.getItem('locatorMode') || 'city';
} }
// Update textbox placeholders // Update textbox placeholders