Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: chrome/test/data/banners/service_worker.js

Issue 2751343002: Adds a basic offline check to InstallableManager. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/banners/service_worker.js
diff --git a/chrome/test/data/banners/service_worker.js b/chrome/test/data/banners/service_worker.js
index 1047484ea8ad0c9f6964dc0d605c651c160dbdb7..9752d6744ece8e8c5c7d2efae9d2de03a042d0e5 100644
--- a/chrome/test/data/banners/service_worker.js
+++ b/chrome/test/data/banners/service_worker.js
@@ -2,4 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-self.addEventListener('activate', function(event) {});
+// A no-op fetch handler.
+self.addEventListener('fetch', e => {});

Powered by Google App Engine
This is Rietveld 408576698