in src/plugin/index.tsx [37:66]
constructor(placeId: PlaceId | Array<PlaceId>, plugin: PluginConstructorArguments) {
super(plugin)
this.placeId = this.pickPlaceId(placeId)
this.name = plugin.name
this.content = plugin.content
this.options = plugin.options || {}
if (!this.placeId) {
// eslint-disable-next-line no-console
console.error('Failed to initialize Plugin. Please, check the Place ID name. ', placeId)
}
if (this.options.debug === true) {
this.debug = true
}
try {
pluginRegistry.add(this.placeId, this)
} catch (error) {
// eslint-disable-next-line no-console
console.error(
`Plugin ${this.name} / ${this.placeId}: ${error} If you would like to update the Plugin Content, please, use replaceContent method`,
)
return
}
this.create()
this.createContainer()
this.render()
}