setup: Add setter for password_change_in_progress.

After migration to an ES6 module, `password_change_in_progress` would
no longer be mutable from outside the module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-09-23 20:23:09 -07:00
committed by Tim Abbott
parent 30d7090621
commit 7408f6bd3d
2 changed files with 8 additions and 3 deletions

View File

@@ -4,6 +4,11 @@ const util = require("./util");
// Miscellaneous early setup.
exports.password_change_in_progress = false;
exports.set_password_change_in_progress = function (value) {
exports.password_change_in_progress = value;
};
$(() => {
if (util.is_mobile()) {
// Disable the tutorial; it's ugly on mobile.