From a517901f924c4374df8c5ed73e82938119e54a01 Mon Sep 17 00:00:00 2001 From: Logan Jones Date: Mon, 22 Oct 2018 20:42:22 -0400 Subject: [PATCH] Update bit.ly PWA links. #5497 --- docusaurus/docs/making-a-progressive-web-app.md | 2 +- packages/react-scripts/template/src/index.js | 2 +- packages/react-scripts/template/src/serviceWorker.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docusaurus/docs/making-a-progressive-web-app.md b/docusaurus/docs/making-a-progressive-web-app.md index 23b43f551da..a1b7b6427ee 100644 --- a/docusaurus/docs/making-a-progressive-web-app.md +++ b/docusaurus/docs/making-a-progressive-web-app.md @@ -15,7 +15,7 @@ following in their [`src/index.js`](https://github.com/facebook/create-react-app ```js // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: http://bit.ly/CRA-PWA +// Learn more about service workers: http://bit.ly/CRA-PWA2 serviceWorker.unregister(); ``` diff --git a/packages/react-scripts/template/src/index.js b/packages/react-scripts/template/src/index.js index 0c5e75da1cd..51d110e2c96 100644 --- a/packages/react-scripts/template/src/index.js +++ b/packages/react-scripts/template/src/index.js @@ -8,5 +8,5 @@ ReactDOM.render(, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this comes with some pitfalls. -// Learn more about service workers: http://bit.ly/CRA-PWA +// Learn more about service workers: http://bit.ly/CRA-PWA2 serviceWorker.unregister(); diff --git a/packages/react-scripts/template/src/serviceWorker.js b/packages/react-scripts/template/src/serviceWorker.js index 0bece46ae65..cf0c66453cd 100644 --- a/packages/react-scripts/template/src/serviceWorker.js +++ b/packages/react-scripts/template/src/serviceWorker.js @@ -8,7 +8,7 @@ // resources are updated in the background. // To learn more about the benefits of this model and instructions on how to -// opt-in, read http://bit.ly/CRA-PWA +// opt-in, read http://bit.ly/CRA-PWA2 const isLocalhost = Boolean( window.location.hostname === 'localhost' || @@ -43,7 +43,7 @@ export function register(config) { navigator.serviceWorker.ready.then(() => { console.log( 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit http://bit.ly/CRA-PWA' + 'worker. To learn more, visit http://bit.ly/CRA-PWA2' ); }); } else { @@ -68,7 +68,7 @@ function registerValidSW(swUrl, config) { // content until all client tabs are closed. console.log( 'New content is available and will be used when all ' + - 'tabs for this page are closed. See http://bit.ly/CRA-PWA.' + 'tabs for this page are closed. See http://bit.ly/CRA-PWA2.' ); // Execute callback