better display announcement

This commit is contained in:
2022-08-30 21:21:31 +08:00
parent aac1f8661c
commit ebf51ec34a
3 changed files with 5 additions and 2 deletions

View File

@@ -1324,7 +1324,7 @@ export class Flow extends PureComponent {
}
this.state = {
submode: submode,
announcement: null,
announcement: window.ANN,
};
}
@@ -1350,6 +1350,8 @@ export class Flow extends PureComponent {
update_announcement(text) {
if (text !== this.state.announcement) {
window.ANN = text;
localStorage['ANN'] = text;
this.setState({
announcement: text,
});