# サードパーティ製サービス向けにサービスワーカーを追加する

**URL:** https://meta.discourse.org/t/adding-service-workers-for-third-party-services/99619
**Category:** Development
**Created:** [2018 年 10 月 16 日午前 6:55 UTC](https://meta.discourse.org/t/adding-service-workers-for-third-party-services/99619 "2018-10-16T06:55:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2018 年 10 月 16 日午前 6:55 UTC](https://meta.discourse.org/t/adding-service-workers-for-third-party-services/99619/1 "2018-10-16T06:55:04Z")

</div>

One of our customers asked us to drop a file in the document root for an integration with the ‘Subscriber’ service.

> **[Installation guide to get Subscribers on your website](https://subscribers.freshdesk.com/support/solutions/articles/35000013054-diy-installation-instructions)**
>
> Please refer to the correct set of instructions for your website. There is one extra step needed to install everything on an HTTPS site vs an HTTP site.  For HTTPS users As an HTTPS website you need to install our Subscribers javascript c...

I’ve been looking around on how to do this in a clean way. [I do see some references to service workers in the plugin registry](https://github.com/discourse/discourse/blob/eda1462b3b8f57aace0c49b1d64edfcf3d1f45b2/lib/discourse_plugin_registry.rb#L104-L106) but can’t find an example of any plugin code using this.

- Will this ever work?
- Is using a plugin to register a service worker the way to go?
- Does anyone have a code example for this?
