Skip to content

Commit

Permalink
feat: cleanup UMD entry file
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Jul 22, 2023
1 parent 5cb4e61 commit 2756120
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions lib/index.standalone.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
/*
* Expose the function on the window object
*/
import jwtDecode from "./index";

//use amd or just through the window object.
const global = window as any;
if (global) {
if (typeof global.define == "function" && global.define.amd) {
global.define("jwt_decode", function() {
return jwtDecode;
});
} else if (global) {
global.jwt_decode = jwtDecode;
}
}
export default jwtDecode;

0 comments on commit 2756120

Please sign in to comment.