2023-05-24 07:19:05 +00:00
|
|
|
(function(back) {
|
|
|
|
const menu = {
|
|
|
|
'': {'title': 'Popcon'},
|
|
|
|
'< Back': back,
|
|
|
|
'Reset app popularities': () => {
|
2023-05-24 07:27:12 +00:00
|
|
|
const S = require("Storage");
|
|
|
|
S.erase("popcon.cache.json");
|
|
|
|
|
2023-06-13 22:22:14 +00:00
|
|
|
const info = S.readJSON("popconlaunch.info", true) as AppInfo & { cacheBuster?: boolean };
|
2023-05-24 07:27:12 +00:00
|
|
|
info.cacheBuster = !info.cacheBuster;
|
2023-05-24 07:27:29 +00:00
|
|
|
S.writeJSON("popconlaunch.info", info);
|
2023-05-24 07:27:12 +00:00
|
|
|
|
2023-05-24 07:19:05 +00:00
|
|
|
E.showMessage("Popcon reset", "Done");
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
E.showMenu(menu);
|
|
|
|
}) satisfies SettingsFunc
|