sync
This commit is contained in:
1 parent
29209a3a00
commit
84190ed9f1
14 files changed
+1004
-527
No files matched your search
@@ -47,7 +47,8 @@ function getStorageKey(lgid) {
|
||||
|
||||
async function doRefreshLgres(template = '') {
|
||||
const lgid = getCurrentLgId();
|
||||
const r = await get(`language/${lgid}${template}`);
|
||||
const url = template.length > 0 ? template.replace('{lgid}', lgid) : `language/${lgid}`;
|
||||
const r = await get(url);
|
||||
const dict = await r.json();
|
||||
localStorage.setItem(getStorageKey(lgid), JSON.stringify(dict));
|
||||
return dict;
|
||||
|
||||
Reference in new issue
Block a user