summaryrefslogtreecommitdiffstats
path: root/devtools/client/styleeditor/test/iframe_service_worker.js
blob: 56c32c204a38ff0ade21895f529586d6a1c5409f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";

self.onfetch = function (event) {
  if (event.request.url.includes("sheet.css")) {
    return event.respondWith(new Response("* { color: green; }"));
  }
  return null;
};

self.onactivate = function (event) {
  event.waitUntil(self.clients.claim());
};