Skip to content

Commit

Permalink
Component name added to error messages for better tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhnemade committed Oct 24, 2018
1 parent 6da7c60 commit 8037b88
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
2 changes: 1 addition & 1 deletion src/components/TwitterDMButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterDMButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterFollowButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterFollowButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterHashtagButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterHashtagButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterMentionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterMentionButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterMomentShare.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterMomentShare extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterOnAirButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterOnAirButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterShareButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterShareButton extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterTimelineEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class TwitterTimelineEmbed extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterTweetEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class TwitterTweetEmbed extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/TwitterVideoEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class TwitterVideoEmbed extends Component {
componentDidMount() {
script.ready('twitter-embed', () => {
if (!window.twttr) {
console.error('Failure to load window.twttr, aborting load.')
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.')
return
}

Expand Down

0 comments on commit 8037b88

Please sign in to comment.