react-twitter-widgets
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -60,2 +60,9 @@ 'use strict'; | ||
$script.ready('twitter-widgets', function () { | ||
if (!window.twttr) { | ||
// If the script tag fails to load, scriptjs.ready() will still trigger. | ||
// Let's avoid the JS exceptions when that happens. | ||
console.error('Failure to load window.twttr, aborting load.'); | ||
return; | ||
} | ||
// Delete existing | ||
@@ -62,0 +69,0 @@ _this2.removeChildren(widgetWrapper); |
{ | ||
"name": "react-twitter-widgets", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Twitter widgets as React components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -29,2 +29,9 @@ import React from 'react' | ||
$script.ready('twitter-widgets', () => { | ||
if (!window.twttr) { | ||
// If the script tag fails to load, scriptjs.ready() will still trigger. | ||
// Let's avoid the JS exceptions when that happens. | ||
console.error('Failure to load window.twttr, aborting load.'); | ||
return; | ||
} | ||
// Delete existing | ||
@@ -31,0 +38,0 @@ this.removeChildren(widgetWrapper) |
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
38648
771