ServiceWorkerContainer
インターフェイスの onerror
プロパティは、関連するサービスワーカーで error
イベントが発生するたびに発生するイベントハンドラーです。
構文
serviceWorkerContainer.onerror = function(errorevent) { ... }
例
navigator.serviceWorker.onerror = function(errorevent) {
console.log(`受信したエラーメッセージ: ${errorevent.message}`);
}
ブラウザーの互換性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.