js: Convert static/js/billing/upgrade.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-10 08:12:09 -08:00 committed by Tim Abbott
parent ce9d1d2b4d
commit e6fce07b0e
3 changed files with 2 additions and 8 deletions

View File

@ -274,7 +274,6 @@
"unread": false,
"unread_ops": false,
"unread_ui": false,
"upgrade": false,
"upload": false,
"upload_widget": false,
"user_events": false,

View File

@ -1,6 +1,4 @@
"use strict";
exports.initialize = () => {
export const initialize = () => {
helpers.set_tab("upgrade");
const add_card_handler = StripeCheckout.configure({
@ -82,8 +80,6 @@ exports.initialize = () => {
helpers.update_charged_amount(prices, $("input[type=radio][name=schedule]:checked").val());
};
window.upgrade = exports;
$(() => {
exports.initialize();
initialize();
});

View File

@ -140,7 +140,6 @@ declare let ui_util: any;
declare let unread: any;
declare let unread_ops: any;
declare let unread_ui: any;
declare let upgrade: any;
declare let upload: any;
declare let upload_widget: any;
declare let user_events: any;