Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion suncalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ SunCalc.getMoonTimes = function (date, lat, lng, inUTC) {
// export as Node module / AMD module / browser variable
if (typeof exports === 'object' && typeof module !== 'undefined') module.exports = SunCalc;
else if (typeof define === 'function' && define.amd) define(SunCalc);
else window.SunCalc = SunCalc;
else if (globalThis !== 'undefined') globalThis.SunCalc = SunCalc;
else if (window !== 'undefined') window.SunCalc = SunCalc;
else self.SunCalc = SunCalc;

}());