flip module.exports and window check for this lib to work on nw.js and electron per Issue #13

This commit is contained in:
Jason Hunter 2016-08-14 22:39:50 -04:00
parent 7180db1be6
commit 9fdcc00739
1 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ S2.S2Cell.nextKey = S2.nextKey = function (key) {
return S2.stepKey(key, 1);
};
})('undefined' !== typeof window ? window : module.exports);
})('undefined' !== typeof module.exports ? module.exports : window);
(function (exports) {
'use strict';
@ -517,4 +517,4 @@ S2.S2Cell.nextKey = S2.nextKey = function (key) {
L.LatLng.DEG_TO_RAD = Math.PI / 180;
L.LatLng.RAD_TO_DEG = 180 / Math.PI;
})('undefined' !== typeof window ? window : module.exports);
})('undefined' !== typeof module.exports ? module.exports : window);