Skip to content

Commit

Permalink
Merge pull request facebook#2892 from jsfb/fbme-url-for-dangerouslySe…
Browse files Browse the repository at this point in the history
…tInnerHtml

Added fb.me url to error message.
  • Loading branch information
jimfb committed Jan 23, 2015
2 parents a534264 + b94adc9 commit 734aedb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/browser/ui/ReactDOMComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function assertValidProps(props) {
invariant(
props.dangerouslySetInnerHTML.__html != null,
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
);
}
if (__DEV__) {
Expand Down
4 changes: 2 additions & 2 deletions src/browser/ui/__tests__/ReactDOMComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ describe('ReactDOMComponent', function() {
}).toThrow(
'Invariant Violation: ' +
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
);
});

Expand All @@ -367,7 +367,7 @@ describe('ReactDOMComponent', function() {
}).toThrow(
'Invariant Violation: ' +
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
);
});

Expand Down

0 comments on commit 734aedb

Please sign in to comment.