aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/serviceworkercontainer/onerror/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/serviceworkercontainer/onerror/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/serviceworkercontainer/onerror/index.html')
-rw-r--r--files/ja/web/api/serviceworkercontainer/onerror/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/files/ja/web/api/serviceworkercontainer/onerror/index.html b/files/ja/web/api/serviceworkercontainer/onerror/index.html
new file mode 100644
index 0000000000..94f9975441
--- /dev/null
+++ b/files/ja/web/api/serviceworkercontainer/onerror/index.html
@@ -0,0 +1,36 @@
+---
+title: ServiceWorkerContainer.onerror
+slug: Web/API/ServiceWorkerContainer/onerror
+tags:
+ - API
+ - Experimental
+ - Property
+ - Reference
+ - Service Workers
+ - ServiceWorker
+ - ServiceWorkerContainer
+ - onerror
+translation_of: Web/API/ServiceWorkerContainer/onerror
+---
+<p>{{APIRef("Service Workers API")}}{{ SeeCompatTable() }}</p>
+
+<p><span class="seoSummary">{{domxref("ServiceWorkerContainer")}} インターフェイスの <code><strong>onerror</strong></code> プロパティは、関連するサービスワーカーで {{Event("error")}} イベントが発生するたびに発生するイベントハンドラーです。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>serviceWorkerContainer</em>.onerror = function(<em>errorevent</em>) { ... }</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: js">navigator.serviceWorker.onerror = function(errorevent) {
+ console.log(`受信したエラーメッセージ: ${errorevent.message}`);
+}
+</pre>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div>
+
+
+<p>{{Compat("api.ServiceWorkerContainer.onerror")}}</p>
+</div>