update announcement system

This commit is contained in:
Dany LE
2021-11-24 22:15:25 +01:00
parent e345a61269
commit 3a24df169c
11 changed files with 182 additions and 91 deletions

View File

@ -1145,7 +1145,7 @@ namespace OS {
loadTheme(setting.appearance.theme, true);
wallpaper(undefined);
OS.announcer.observable.one("syspanelloaded", async function () {
OS.announcer.observable.on("systemlocalechange", (name) =>
OS.announcer.observable.on("systemlocalechange", (_) =>
$("#syspanel")[0].update()
);
@ -1197,10 +1197,10 @@ namespace OS {
// initDM
API.setLocale(setting.system.locale).then(() => initDM());
Ant.OS.announcer.observable.on("error", function (d) {
console.log(d.data.e);
console.log(d.u_data);
});
Ant.OS.announcer.observable.on("fail", function (d) {
console.log(d.data.e);
console.log(d.u_data);
});
}
/**