Skip to content

Commit ea8e0f2

Browse files
dumb bug i couldnt have known about
1 parent cc4993c commit ea8e0f2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

evergreen.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,10 @@ function init_weather() {
744744

745745
// load weather
746746
if (result["weather"]) {
747-
weather_info = result["weather"];
747+
if (result["openweathermap"] && result["nws"]) {
748+
weather_info = result["weather"];
749+
}
750+
// don't set weather info if the previous info is invalid such as from previous version
748751
}
749752
weather_location_string = result["geocode"]
750753

newtab.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ <h3>Changelog v2.1.0</h3>
346346
<h4>Changes</h4>
347347
<ul>
348348
<li>Added YYYY-MM-DD date format option.</li>
349+
<li>fixed bug that prevented weather from working if user had saved weather info pre-2.0.0</li>
349350
</ul>
350351
</div>
351352
<div class="modal-footer">

0 commit comments

Comments
 (0)