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
|
|
|
|
2019-11-15 11:31:19 +00:00
|
|
|
export default class ReloadOnChangeController extends SettingController {
|
2023-01-12 13:25:14 +00:00
|
|
|
public onChange(level: SettingLevel, roomId: string, newValue: any): void {
|
2023-02-15 13:36:22 +00:00
|
|
|
PlatformPeg.get()?.reload();
|
2019-05-30 19:57:17 -06:00
|
|
|
}
|
|
|
|
|
}
|