# 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:** 12

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [May 7, 2019, 6:14am UTC](https://meta.discourse.org/t/disable-service-worker-initializer/116392/12 "2019-05-07T06:14:11Z")

</div>

> [@Jacky\_Cheng](#):
>
> I forgot to bring up that Safari now can support service-worker.

Yup we know but Discourse is not ready to support Service workers on Safari yet because it has been problematic for us so far.

> [@Jacky\_Cheng](#):
>
> the else condition would also unregister service worker, it should add the url condition.

It does consider the URL condition because I extracted both of the unregister function calls into a common function.

---

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