Skip to content

Commit 685bc85

Browse files
authored
Remove the check whether proj4 is an object
1 parent 665e9e5 commit 685bc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proj4-fully-loaded.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let proj4 = require("proj4");
22
const defs = require("proj4js-definitions");
33

4-
if (typeof proj4 === "object" && typeof proj4.defs !== "function" && typeof proj4.default === "function") {
4+
if (typeof proj4.defs !== "function" && typeof proj4.default === "function") {
55
// probably inside an Angular project
66
proj4 = proj4.default;
77
}

0 commit comments

Comments
 (0)