2021-03-25 22:35:45 +01:00
|
|
|
"use strict";
|
|
|
|
|
2021-04-03 18:52:00 +02:00
|
|
|
exports.page_params = {};
|
2021-08-30 16:26:38 +02:00
|
|
|
exports.realm_user_settings_defaults = {};
|
2021-07-28 16:00:58 +02:00
|
|
|
exports.user_settings = {};
|
2021-04-03 18:52:00 +02:00
|
|
|
|
2021-03-25 22:35:45 +01:00
|
|
|
exports.reset = () => {
|
2021-04-03 18:52:00 +02:00
|
|
|
for (const field in exports.page_params) {
|
2022-01-24 08:23:22 +01:00
|
|
|
if (Object.hasOwn(exports.page_params, field)) {
|
2021-04-03 18:52:00 +02:00
|
|
|
delete exports.page_params[field];
|
|
|
|
}
|
|
|
|
}
|
2021-07-28 16:00:58 +02:00
|
|
|
for (const field in exports.user_settings) {
|
2022-01-24 08:23:22 +01:00
|
|
|
if (Object.hasOwn(exports.user_settings, field)) {
|
2021-07-28 16:00:58 +02:00
|
|
|
delete exports.user_settings[field];
|
|
|
|
}
|
|
|
|
}
|
2021-08-30 16:26:38 +02:00
|
|
|
for (const field in exports.realm_user_settings_defaults) {
|
2022-01-24 08:23:22 +01:00
|
|
|
if (Object.hasOwn(exports.realm_user_settings_defaults, field)) {
|
2021-08-30 16:26:38 +02:00
|
|
|
delete exports.realm_user_settings_defaults[field];
|
|
|
|
}
|
|
|
|
}
|
2021-03-25 22:35:45 +01:00
|
|
|
};
|