From e304fe5e0a2c6e8a8f38229e22b2639b786477d7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Wed, 12 May 2021 10:57:14 +0200 Subject: [PATCH] fix: 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 9a95450..6d8c470 100644 --- a/src/scripts/sw-broadcast.js +++ b/src/scripts/sw-broadcast.js @@ -10,7 +10,7 @@ if ('serviceWorker' in navigator) { const updatedResponse = await cache.match(updatedURL); try { const updatedData = await updatedResponse.json(); - if (sibStore && "setResource" in sibStore) { + if (sibStore && "setLocalData" in sibStore) { sibStore.setLocalData(updatedData, updatedURL); } } catch (e) {