@benshi.ai/js-sdk
Version:
Benshi SDK
30 lines (28 loc) • 646 B
text/typescript
import {
BsLog,
ECommerce,
ELearning,
Feed,
Loyalty,
Navigation,
Payments,
ReferenceGuide,
Social
} from '.';
/*
This file includes each class in window, to make
them available from a CDN repository
*/
if (window) {
(window as any).BsLog = BsLog;
(window as any).ECommerce = ECommerce;
(window as any).ELearning = ELearning;
(window as any).ReferenceGuide = ReferenceGuide;
(window as any).Feed = Feed;
(window as any).Loyalty = Loyalty;
(window as any).Navigation = Navigation;
(window as any).Payments = Payments;
(window as any).Social = Social;
} else {
console.log('Need browser environment')
}