Skip to content

Commit

Permalink
https in reactProdInvariant text (facebook#12869)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits authored May 20, 2018
1 parent 397d611 commit 9bed4a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/shared/__tests__/reactProdInvariant-test.internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(124, 'foo', 'bar');
}).toThrowError(
'Minified React error #124; visit ' +
'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
'https://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand All @@ -48,7 +48,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(20);
}).toThrowError(
'Minified React error #20; visit ' +
'http://reactjs.org/docs/error-decoder.html?invariant=20' +
'https://reactjs.org/docs/error-decoder.html?invariant=20' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand All @@ -57,7 +57,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(77, '<div>', '&?bar');
}).toThrowError(
'Minified React error #77; visit ' +
'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
'https://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/reactProdInvariant.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import invariant from 'fbjs/lib/invariant';
*/
function reactProdInvariant(code: string): void {
const argCount = arguments.length - 1;
let url = 'http://reactjs.org/docs/error-decoder.html?invariant=' + code;
let url = 'https://reactjs.org/docs/error-decoder.html?invariant=' + code;
for (let argIdx = 0; argIdx < argCount; argIdx++) {
url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
}
Expand Down

0 comments on commit 9bed4a6

Please sign in to comment.