We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 994fd6c + e6c1355 commit 6388d02Copy full SHA for 6388d02
1 file changed
src/URI.js
@@ -1292,6 +1292,9 @@ p.equals = function(uri) {
1292
return true;
1293
};
1294
1295
-window.URI = URI;
1296
-
+if (typeof window !== "undefined" && window !== null) {
+ window.URI = URI;
1297
+} else if ((typeof module !== "undefined" && module !== null ? module.exports : void 0) != null) {
1298
+ module.exports = URI;
1299
+}
1300
})();
0 commit comments