summaryrefslogtreecommitdiffstats
path: root/devtools/shared/commands/resource/tests/test_service_worker.js
blob: aabc3fda0fb7abd853971eadf19f11d9a0cdbe9a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

// We don't need any computation in the worker,
// but at least register a fetch listener so that
// we force instantiating the SW when loading the page.
self.onfetch = function (event) {
  // do nothing.
};