Skip to content

Commit 9bed4a6

Browse files
authored
https in reactProdInvariant text (#12869)
1 parent 397d611 commit 9bed4a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/shared/__tests__/reactProdInvariant-test.internal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('reactProdInvariant', () => {
3939
reactProdInvariant(124, 'foo', 'bar');
4040
}).toThrowError(
4141
'Minified React error #124; visit ' +
42-
'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
42+
'https://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
4343
' for the full message or use the non-minified dev environment' +
4444
' for full errors and additional helpful warnings.',
4545
);
@@ -48,7 +48,7 @@ describe('reactProdInvariant', () => {
4848
reactProdInvariant(20);
4949
}).toThrowError(
5050
'Minified React error #20; visit ' +
51-
'http://reactjs.org/docs/error-decoder.html?invariant=20' +
51+
'https://reactjs.org/docs/error-decoder.html?invariant=20' +
5252
' for the full message or use the non-minified dev environment' +
5353
' for full errors and additional helpful warnings.',
5454
);
@@ -57,7 +57,7 @@ describe('reactProdInvariant', () => {
5757
reactProdInvariant(77, '<div>', '&?bar');
5858
}).toThrowError(
5959
'Minified React error #77; visit ' +
60-
'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
60+
'https://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
6161
' for the full message or use the non-minified dev environment' +
6262
' for full errors and additional helpful warnings.',
6363
);

packages/shared/reactProdInvariant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import invariant from 'fbjs/lib/invariant';
1919
*/
2020
function reactProdInvariant(code: string): void {
2121
const argCount = arguments.length - 1;
22-
let url = 'http://reactjs.org/docs/error-decoder.html?invariant=' + code;
22+
let url = 'https://reactjs.org/docs/error-decoder.html?invariant=' + code;
2323
for (let argIdx = 0; argIdx < argCount; argIdx++) {
2424
url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
2525
}

0 commit comments

Comments
 (0)