mirror of https://github.com/zulip/zulip.git
18 lines
483 B
JavaScript
18 lines
483 B
JavaScript
"use strict";
|
|
|
|
exports.page_params = {};
|
|
exports.user_settings = {};
|
|
|
|
exports.reset = () => {
|
|
for (const field in exports.page_params) {
|
|
if (Object.prototype.hasOwnProperty.call(exports.page_params, field)) {
|
|
delete exports.page_params[field];
|
|
}
|
|
}
|
|
for (const field in exports.user_settings) {
|
|
if (Object.prototype.hasOwnProperty.call(exports.user_settings, field)) {
|
|
delete exports.user_settings[field];
|
|
}
|
|
}
|
|
};
|