feat: use faster senja
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "shared-constants",
|
||||
"name": "shared",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"tsconfig": "workspace:*"
|
||||
@@ -0,0 +1,8 @@
|
||||
export function embedSenjaWidget(widgetId: string) {
|
||||
const s = document.createElement('script');
|
||||
|
||||
s.setAttribute('src', `https://widget.senja.io/widget/${widgetId}/platform.js`);
|
||||
s.setAttribute('type', 'text/javascript');
|
||||
|
||||
document.head.appendChild(s);
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"lib": ["ES2016"]
|
||||
"lib": ["ES2016", "DOM"]
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user