announcekit-react
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -33,6 +33,5 @@ "use strict"; | ||
var _this = _super.call(this, props) || this; | ||
_this.name = Math.random() | ||
_this.selector = ".ak-" + Math.random() | ||
.toString(36) | ||
.substring(10); | ||
_this.selector = ".ak-" + _this.name; | ||
return _this; | ||
@@ -100,3 +99,9 @@ } | ||
this.selector = null; | ||
this.name = Math.random() | ||
.toString(36) | ||
.substring(10); | ||
window["announcekit"].push(__assign({ widget: this.props.widget, name: this.name, version: 2, selector: this.selector }, styleParams, { onInit: function (_widget) { | ||
if (_widget.conf.name !== _this.name) { | ||
return _widget.destroy(); | ||
} | ||
var ann = window["announcekit"]; | ||
@@ -103,0 +108,0 @@ _this.widgetInstance = _widget; |
{ | ||
"name": "announcekit-react", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Use AnnounceKit widgets in your React App", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14157
319