Files
ThreadNet-Web/src/settings/controllers/ReloadOnChangeController.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
560 B
TypeScript
Raw Normal View History

2019-05-30 19:57:17 -06:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
2020-07-28 15:21:53 -06:00
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
2019-05-30 19:57:17 -06:00
2024-09-09 14:57:16 +01:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
2019-05-30 19:57:17 -06:00
*/
import SettingController from "./SettingController";
import PlatformPeg from "../../PlatformPeg";
2020-07-28 15:21:53 -06:00
import { SettingLevel } from "../SettingLevel";
2019-05-30 19:57:17 -06:00
export default class ReloadOnChangeController extends SettingController {
public onChange(level: SettingLevel, roomId: string, newValue: any): void {
PlatformPeg.get()?.reload();
2019-05-30 19:57:17 -06:00
}
}