From ccc093b85f627f957cc5c3ffe3c56e9a85637a9b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Wed, 12 May 2021 10:21:33 +0200 Subject: [PATCH] fix: remove setResource in favor of setLocalData --- src/scripts/sw-broadcast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/sw-broadcast.js b/src/scripts/sw-broadcast.js index 7cac9f1..9a95450 100644 --- a/src/scripts/sw-broadcast.js +++ b/src/scripts/sw-broadcast.js @@ -11,7 +11,7 @@ if ('serviceWorker' in navigator) { try { const updatedData = await updatedResponse.json(); if (sibStore && "setResource" in sibStore) { - sibStore.setResource(updatedURL, updatedData); + sibStore.setLocalData(updatedData, updatedURL); } } catch (e) { console.error(e);