Skip to content

Commit

Permalink
Export statements
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Apr 13, 2024
2 parents c75a331 + 45d94dd commit e16411b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions purlfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,9 @@ class Purlfy extends EventTarget {
};
}
}

if (typeof module !== "undefined" && module.exports) {
module.exports = Purlfy; // Export for Node.js
} else {
this.Purlfy = Purlfy; // Export for browser
}

0 comments on commit e16411b

Please sign in to comment.