Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connectedCallback() {
if (!this.serviceRegistered) {
register({
locator: function(component, data, def, context) {
const { target, host, targetContext, hostContext } = context.locator.resolved;
window.interaction = {
target: target,
scope: host,
context: Object.assign(targetContext || {}, hostContext),
};
},
});
this.serviceRegistered = true;
}
}