const shortLocale = locale.split('-')[0];
const targetFile = internals.kHost + internals.kDataPrefix + shortLocale + path;
- const data = browser && sessionStorage.getItem(targetFile);
+ const data = browser && localStorage.getItem(targetFile);
if (data) {
return JSON.parse(data);
}
let newData = await (await fetch(targetFile)).json();
- browser && sessionStorage.setItem(targetFile, JSON.stringify(newData));
+ browser && localStorage.setItem(targetFile, JSON.stringify(newData));
return newData;
},