# Disable service worker initializer

**URL:** <https://meta.discourse.org/t/disable-service-worker-initializer/116392>\
**Category:** Development\
**Created:** [April 30, 2019, 3:59am UTC](https://meta.discourse.org/t/disable-service-worker-initializer/116392 "2019-04-30T03:59:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [April 30, 2019, 4:09am UTC](https://meta.discourse.org/t/disable-service-worker-initializer/116392/4 "2019-04-30T04:09:42Z")

</div>

Correction, we only de-register stuff that we know is ours:

> <https://github.com/discourse/discourse/blob/2863abefdda8ca6fbef244761e89130013f48d15/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6#L17-L24>

One spinner is that we de-register apple cause it is buggy at the moment:

> <https://github.com/discourse/discourse/blob/2863abefdda8ca6fbef244761e89130013f48d15/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6#L12-L12>

As to using scope here, I think it makes sense to make the change to Discourse provided scope is well supported.

---

_[View the full topic](https://meta.discourse.org/t/disable-service-worker-initializer/116392)._
