zulip/frontend_tests/zjsunit/zpage_params.js

24 lines
698 B
JavaScript

"use strict";
exports.page_params = {};
exports.realm_user_settings_defaults = {};
exports.user_settings = {};
exports.reset = () => {
for (const field in exports.page_params) {
if (Object.hasOwn(exports.page_params, field)) {
delete exports.page_params[field];
}
}
for (const field in exports.user_settings) {
if (Object.hasOwn(exports.user_settings, field)) {
delete exports.user_settings[field];
}
}
for (const field in exports.realm_user_settings_defaults) {
if (Object.hasOwn(exports.realm_user_settings_defaults, field)) {
delete exports.realm_user_settings_defaults[field];
}
}
};