fix: remove setResource in favor of setLocalData

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-12 10:21:33 +02:00
parent 607792988d
commit ccc093b85f
1 changed files with 1 additions and 1 deletions

View File

@ -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);