Initial commit
This commit is contained in:
27
templates/default/index.js
Normal file
27
templates/default/index.js
Normal file
@ -0,0 +1,27 @@
|
||||
// ##RUNTIME_IMPORT##
|
||||
import { bootstrap } from '@telia-ace/widget-core-flamingo';
|
||||
// ##PLUGIN_IMPORTS##
|
||||
|
||||
const client = createHttpClient('https://widgets.ace.teliacompany.net/v1');
|
||||
|
||||
(async () => {
|
||||
bootstrap(
|
||||
{
|
||||
httpClient: client,
|
||||
apps: [
|
||||
{
|
||||
renderStrategy: 'trigger',
|
||||
autoActivate: true,
|
||||
widgetId: '##WIDGET_ID##',
|
||||
triggerIcon: 'question',
|
||||
},
|
||||
],
|
||||
},
|
||||
(siteConfig) => {
|
||||
siteConfig.applications.forEach((config) => {
|
||||
// ##PLUGINS##
|
||||
});
|
||||
}
|
||||
);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user