Skip to content

Commit

Permalink
resolve feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alantoa committed May 22, 2024
1 parent e48c141 commit 0d2402a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/universal-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ declare var window: any;

if (typeof window !== "undefined" && typeof window.URL !== "undefined") {
// for browser environment
URLClass = window.URL;
URLClass = URL;
} else if (typeof global !== "undefined" && typeof global.URL !== "undefined") {
// for react native environment
URLClass = global.URL;
URLClass = URL;
} else if (typeof require !== "undefined") {
// for Node.js environment
const { URL } = require("url");
Expand Down

0 comments on commit 0d2402a

Please sign in to comment.