Skip to content

WeatherTweaker v1.2.1

Choose a tag to compare

@Mitaska Mitaska released this 29 May 15:33
· 4 commits to main since this release

Added

  • Mobile overflow menu injection — injectMobileMenuButton() detects the "..." popover on mobile and injects a copy of the WeatherTweaker button with data-mt-popover attribute

Fixed

  • Star preset compatibility on mobile — stars are now kept in an extension-owned starField array instead of the host's particle array, preventing the host's respawn logic (triggered on every canvas resize) from overwriting star positions and causing layout glitches
  • Button click propagation on mobile popovers — split click handling into onWeatherBtnClick which only stops propagation when not inside a mobile "..." overflow menu, preventing the menu from closing prematurely
  • Button state not updating in mobile popover — updateBtnState() now also queries #mt-popover-btn for active styling

Changed

  • Refactored button creation — extracted makeWeatherButton(), weatherBtnClass(), buildWeatherIcon() for reuse across desktop and mobile popover injection points