Skip to content

Commit 322aa0a

Browse files
default config
1 parent c91c85f commit 322aa0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import React from "react";
66
const load = function(component, product) {
77

88
// load config
9-
let config = JSON.parse(JSON.stringify(component.props.config));
9+
let config = component.props.config || {enabled: true};
10+
config = JSON.parse(JSON.stringify(config));
1011

1112
// load buttons
1213
const _onShareThisLoaded = window.onShareThisLoaded;

0 commit comments

Comments
 (0)