Page 1 of 1

noaarpt,js error

Posted: Wed 02 Jun 2021 12:12 pm
by philpugh
There is a small error in noaarpts.js which throws the following exception in the browser:-

noaarpts.js:51 Uncaught (in promise) ReferenceError: startMon is not defined at noaarpts.js:5
It's fixed by changing line 51 from..
monSt = y == startYear ? startMon : 1;
to
monSt = y == startYear ? startMonth: 1;

Re: noaarpt,js error

Posted: Wed 02 Jun 2021 2:13 pm
by mcrossley
Thanks Phil, I'd already caught and fixed that one for the next release.