Skip to content

Commit d443bd9

Browse files
committed
Test global export
1 parent 71a9b1f commit d443bd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,9 @@ export function convert(
216216
return 'ศูนย์บาทถ้วน';
217217
}
218218

219+
// Global browser support
220+
if (typeof window !== 'undefined') {
221+
(window as any).Baht = convert;
222+
}
223+
219224
export default convert;

0 commit comments

Comments
 (0)