js: Convert static/js/user_search.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-10 08:03:01 -08:00
committed by Tim Abbott
parent 6775715b9f
commit 229aacb819
6 changed files with 2 additions and 10 deletions

View File

@@ -1,6 +1,4 @@
"use strict";
class UserSearch {
export class UserSearch {
// This is mostly view code to manage the user search widget
// above the buddy list. We rely on other code to manage the
// details of populating the list when we change.
@@ -119,6 +117,3 @@ class UserSearch {
e.stopPropagation();
}
}
module.exports = UserSearch;
window.UserSearch = UserSearch;