@wistia/react-embeds
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -309,2 +309,4 @@ 'use strict'; | ||
value: function render() { | ||
var _this$context, _this$context$wistiaC; | ||
// SSR doesn't call methods like componentDidMount, so it's crucial that we add the channel | ||
@@ -314,3 +316,3 @@ // to head manager here in render as well in componentDidMount. | ||
// instead use the bound head manager methods directly | ||
this.context.wistiaContext.addChannelId(this.props.hashedId); | ||
(_this$context = this.context) === null || _this$context === void 0 ? void 0 : (_this$context$wistiaC = _this$context.wistiaContext) === null || _this$context$wistiaC === void 0 ? void 0 : _this$context$wistiaC.addChannelId(this.props.hashedId); | ||
return this.state.safeToRender ? /*#__PURE__*/react.createElement("div", { | ||
@@ -554,3 +556,2 @@ className: this.classNames, | ||
if (this.props.videoFoam) { | ||
console.log('rendering'); | ||
return /*#__PURE__*/react.createElement("div", { | ||
@@ -557,0 +558,0 @@ className: "wistia_responsive_padding", |
@@ -304,2 +304,4 @@ 'use strict'; | ||
value: function render() { | ||
var _this$context, _this$context$wistiaC; | ||
// SSR doesn't call methods like componentDidMount, so it's crucial that we add the channel | ||
@@ -309,3 +311,3 @@ // to head manager here in render as well in componentDidMount. | ||
// instead use the bound head manager methods directly | ||
this.context.wistiaContext.addChannelId(this.props.hashedId); | ||
(_this$context = this.context) === null || _this$context === void 0 ? void 0 : (_this$context$wistiaC = _this$context.wistiaContext) === null || _this$context$wistiaC === void 0 ? void 0 : _this$context$wistiaC.addChannelId(this.props.hashedId); | ||
return this.state.safeToRender ? /*#__PURE__*/react.createElement("div", { | ||
@@ -538,3 +540,2 @@ className: this.classNames, | ||
if (this.props.videoFoam) { | ||
console.log('rendering'); | ||
return /*#__PURE__*/react.createElement("div", { | ||
@@ -541,0 +542,0 @@ className: "wistia_responsive_padding", |
@@ -87,2 +87,4 @@ 'use strict'; | ||
render() { | ||
var _this$context, _this$context$wistiaC; | ||
// SSR doesn't call methods like componentDidMount, so it's crucial that we add the channel | ||
@@ -92,3 +94,3 @@ // to head manager here in render as well in componentDidMount. | ||
// instead use the bound head manager methods directly | ||
this.context.wistiaContext.addChannelId(this.props.hashedId); | ||
(_this$context = this.context) === null || _this$context === void 0 ? void 0 : (_this$context$wistiaC = _this$context.wistiaContext) === null || _this$context$wistiaC === void 0 ? void 0 : _this$context$wistiaC.addChannelId(this.props.hashedId); | ||
return this.state.safeToRender ? /*#__PURE__*/react.createElement("div", { | ||
@@ -292,3 +294,2 @@ className: this.classNames, | ||
if (this.props.videoFoam) { | ||
console.log('rendering'); | ||
return /*#__PURE__*/react.createElement("div", { | ||
@@ -295,0 +296,0 @@ className: "wistia_responsive_padding", |
{ | ||
"name": "@wistia/react-embeds", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "React component wrappers for Wistia embeddables", | ||
@@ -5,0 +5,0 @@ "browser": "browser.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189361
4974