Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Fix opening windy.com/plugin/sdg
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed May 11, 2024
1 parent 8b536a6 commit c16662e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pluginConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ExternalPluginConfig } from '@windy/interfaces';
const config: ExternalPluginConfig = {
author: "Victor Berchet",
name: "windy-plugin-sounding",
version: "3.0.7",
version: "3.0.8",
description: "Soundings for paraglider pilots",
repository: "git+https://github.com/vicb/windy-plugin-sounding",
title: 'Better Soundings',
Expand Down
2 changes: 1 addition & 1 deletion src/sounding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const openPlugin = (ll?: LatLon) => {
let lat: number;
let lon: number;

if (!ll) {
if (!ll || ll.lat == null || ll.lon == null) {
const c = windyMap.getCenter();
lat = c.lat;
lon = c.lng;
Expand Down

0 comments on commit c16662e

Please sign in to comment.