Skip to content

Commit

Permalink
fix(widgets): weather rerender duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyurec committed Aug 4, 2022
1 parent 797c3ef commit e79cf82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ const renderWidgetWeather = () => {
return false;
}
if (!bannerWidgetsWeather || isWidgetsWeatherChanged) {
bannerWidgetsWeather?.remove();
doc.getElementById("banner-widgets")?.insertAdjacentHTML("beforeend", `<iframe id="banner-widgets-weather" src="https://indify.co/widgets/live/weather/${widgetsConfig.weather.id}"></iframe>`);
}
return true;
Expand Down

0 comments on commit e79cf82

Please sign in to comment.