-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30c65e2
commit 3bd030a
Showing
1 changed file
with
1 addition
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |