gecko-dev/dom/workers/test/serviceworkers/interception_featuredetect.js

5 строки
122 B
JavaScript

// Only succeeds if onfetch is available.
if (!("onfetch" in self)) {
throw new Error("Not capable of interception");
}