Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Created January 31, 2020 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdholtz/f8dab8b4504188b60917840fd7ab0976 to your computer and use it in GitHub Desktop.
Save joshdholtz/f8dab8b4504188b60917840fd7ab0976 to your computer and use it in GitHub Desktop.
When Twitter fails to refresh, you run πŸ’£_service_workers.js
// Once a weeek (or so) I won't be able to reload anything on Twitter (web)
// There page reload gets stuck at about 30%
// Twitter works in private browser instances and other browsers
// There is some issue in the service worker that is preventing a refresh
// The only solution is to run this in the open up the Javascript Console and run this
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
} })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment