---
title: ServiceWorkerRegistration.sync
slug: Web/API/ServiceWorkerRegistration/sync
tags:
  - API
  - Experimental
  - Property
  - Reference
  - Service Workers
  - ServiceWorkerRegistration
  - Sync
translation_of: Web/API/ServiceWorkerRegistration/sync
---
<div>{{Non-standard_header}}{{APIRef("Service Workers API")}}</div>

<p><span class="seoSummary">{{domxref("ServiceWorkerRegistration")}} インターフェイスの <strong><code>sync</code></strong> プロパティは、バックグラウンド同期プロセスを管理する {{domxref("SyncManager")}} インターフェイスへの参照を返します。</span></p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox">var <em>syncManager</em> = <em>serviceWorkerRegistration</em>.sync;
</pre>

<h3 id="Value" name="Value">値</h3>

<p>{{domxref("SyncManager")}} オブジェクト。</p>

<h2 id="Specifications" name="Specifications">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様</th>
   <th scope="col">状態</th>
   <th scope="col">コメント</th>
  </tr>
  <tr>
   <td>{{SpecName('Background Sync')}}</td>
   <td>{{Spec2('Background Sync')}}</td>
   <td>初期定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>



<p>{{Compat("api.ServiceWorkerRegistration.sync")}}</p>