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) {