From a47459ba0df8b6d92d6a5863c11e5d736474e87f Mon Sep 17 00:00:00 2001 From: David Walsh Date: Mon, 14 Mar 2016 13:15:28 -0500 Subject: [PATCH] Fix #86 - Rename normalize function --- wp-offline-shell/lib/service-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-offline-shell/lib/service-worker.js b/wp-offline-shell/lib/service-worker.js index fd73dc2..15e8e07 100644 --- a/wp-offline-shell/lib/service-worker.js +++ b/wp-offline-shell/lib/service-worker.js @@ -18,7 +18,7 @@ // Name of the cache the plugin will use cacheName: storageKey, // Method to cleanse a URL before comparing and caching - normalizeAndAnonymize: function(request) { + ignoreSearch: function(request) { var url = new URL(request.url); if (url.origin !== location.origin) { return request.url; @@ -101,7 +101,7 @@ onFetch: function(event) { var request = event.request; - var url = this.normalizeAndAnonymize(request); + var url = this.ignoreSearch(request); if (!this.shouldBeHandled(request.method, url)) { return; }