aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormongolyy <mongolyy@gmail.com>2022-03-12 13:57:27 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-03-12 21:36:02 +0900
commit53b415c8dc4653dacc9208ed5700f328dfde99de (patch)
tree9dd6fed9a6664bc50f9c50711c3a187bc907956d
parent2a56cc59217fd5a670c0585179bd2bf33f9430ed (diff)
downloadtranslated-content-53b415c8dc4653dacc9208ed5700f328dfde99de.tar.gz
translated-content-53b415c8dc4653dacc9208ed5700f328dfde99de.tar.bz2
translated-content-53b415c8dc4653dacc9208ed5700f328dfde99de.zip
単語の前後に空白を追加
-rw-r--r--files/ja/web/api/cookiestore/delete/index.md2
-rw-r--r--files/ja/web/api/cookiestore/index.md14
2 files changed, 8 insertions, 8 deletions
diff --git a/files/ja/web/api/cookiestore/delete/index.md b/files/ja/web/api/cookiestore/delete/index.md
index ef00c4a32f..f876dfdd1e 100644
--- a/files/ja/web/api/cookiestore/delete/index.md
+++ b/files/ja/web/api/cookiestore/delete/index.md
@@ -11,7 +11,7 @@ browser-compat: api.CookieStore.delete
---
{{securecontext_header}}{{DefaultAPISidebar("Cookie Store API")}}
-{{domxref("CookieStore")}} インターフェイスの **`delete()`** メソッドは、与えられた名前またはオプションオブジェクトを持つ Cookie を削除します(下記参照)。`delete()` メソッドは日付を過去のものに変更することでCookieを失効させます。
+{{domxref("CookieStore")}} インターフェイスの **`delete()`** メソッドは、与えられた名前またはオプションオブジェクトを持つ Cookie を削除します(下記参照)。`delete()` メソッドは日付を過去のものに変更することで Cookie を失効させます。
## 構文
diff --git a/files/ja/web/api/cookiestore/index.md b/files/ja/web/api/cookiestore/index.md
index c3a723aa6e..e46e187159 100644
--- a/files/ja/web/api/cookiestore/index.md
+++ b/files/ja/web/api/cookiestore/index.md
@@ -10,7 +10,7 @@ browser-compat: api.CookieStore
---
{{securecontext_header}}{{DefaultAPISidebar("Cookie Store API")}}
-{{domxref('Cookie Store API')}} のインターフェイスである **`CookieStore`** は、ページまたはサービスワーカーから非同期にCookieを取得、設定するためのメソッドを提供します。
+{{domxref('Cookie Store API')}} のインターフェイスである **`CookieStore`** は、ページまたはサービスワーカーから非同期に Cookie を取得、設定するためのメソッドを提供します。
`CookieStore` は {{domxref("Window")}} or {{domxref("ServiceWorkerGlobalScope")}} コンテキスト内のグローバスコープの属性を介してアクセスされます。そのため、コンストラクタはありません。
@@ -19,22 +19,22 @@ browser-compat: api.CookieStore
## メソッド
- {{domxref("CookieStore.delete()")}}
- - : `delete()` メソッドは与えられた名前またはオプションオブジェクトを持つCookieを削除します。削除が完了すると解決される {{jsxref("Promise")}} が返されます。
+ - : `delete()` メソッドは与えられた名前またはオプションオブジェクトを持つ Cookie を削除します。削除が完了すると解決される {{jsxref("Promise")}} が返されます。
- {{domxref("CookieStore.get()")}}
- - : `get()` メソッドは与えられた名前またはオプションオブジェクトで 1 つのCookieを取得します。1 つのCookieの詳細に解決される {{jsxref("Promise")}} を返します。
+ - : `get()` メソッドは与えられた名前またはオプションオブジェクトで 1 つの Cookie を取得します。1 つのCookieの詳細に解決される {{jsxref("Promise")}} を返します。
- {{domxref("CookieStore.getAll()")}}
- - : `getAll()` メソッドはマッチするすべてのCookieを取得します。Cookieのリストに解決される {{jsxref("Promise")}} を返します。
+ - : `getAll()` メソッドはマッチするすべてのCookieを取得します。Cookie のリストに解決される {{jsxref("Promise")}} を返します。
- {{domxref("CookieStore.set()")}}
- - : `set()` メソッドは与えられた名前と値またはオプションオブジェクトをCookieに設定し、Cookieが設定されると解決される {{jsxref("Promise")}} を返します。
+ - : `set()` メソッドは与えられた名前と値またはオプションオブジェクトを Cookie に設定し、Cookie が設定されると解決される {{jsxref("Promise")}} を返します。
## イベント
- {{domxref("CookieStore.change_event")}}
- - : `change` イベントは、任意のCookieに変更が加えられたときに発生します。
+ - : `change` イベントは、任意の Cookie に変更が加えられたときに発生します。
## 例
-この例では、Cookieを設定し、操作が成功したか失敗したかのフィードバックをコンソールに書き込んでいます。
+この例では、Cookie を設定し、操作が成功したか失敗したかのフィードバックをコンソールに書き込んでいます。
```js
const day = 24 * 60 * 60 * 1000;