Skip to content

Commit

Permalink
fix: 馃悰 clone registerCustomElement options
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed May 8, 2024
1 parent 34f20dd commit c8c30cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/integration-custom-element/src/index.js
Expand Up @@ -31,7 +31,8 @@ function afterDOMLoad() {
});
}

function registerCustomElement({ widgetDefinition, callbacks }) {
function registerCustomElement(options) {
const { widgetDefinition, callbacks } = deepMerge({}, options);
class WidgetElement extends HTMLElement {
constructor() {
super();
Expand Down

0 comments on commit c8c30cb

Please sign in to comment.