Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
js: Convert static/js/setup.js to ES6 module.
Anders Kaseorge3022f353e26
diff --git a/static/js/setup.js b/static/js/setup.jsindex 218b28c6bca..da877ee423d 100644--- a/static/js/setup.js+++ b/static/js/setup.js@@ -1,13 +1,11 @@-"use strict";--const util = require("./util");+import * as util from "./util";// Miscellaneous early setup.-exports.password_change_in_progress = false;+export let password_change_in_progress = false;-exports.set_password_change_in_progress = function (value) {- exports.password_change_in_progress = value;-};+export function set_password_change_in_progress(value) {+ password_change_in_progress = value;+}$(() => {if (util.is_mobile()) {@@ -41,7 +39,7 @@ $(() => {// For some reason, jQuery wants this to be attached to an element.$(document).ajaxError((event, xhr) => {- if (exports.password_change_in_progress) {+ if (password_change_in_progress) {// The backend for handling password change API requests// will replace the user's session; this results in a// brief race where any API request will fail with a 401