Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
js: Convert static/js/billing/upgrade.js to ES6 module.
Anders Kaseorge6fce07b0e6a
diff --git a/.eslintrc.json b/.eslintrc.jsonindex 3566282a417..7192a3255f2 100644--- a/.eslintrc.json+++ b/.eslintrc.json@@ -274,7 +274,6 @@"unread": false,"unread_ops": false,"unread_ui": false,- "upgrade": false,"upload": false,"upload_widget": false,"user_events": false,diff --git a/static/js/billing/upgrade.js b/static/js/billing/upgrade.jsindex f1853515617..b458c328755 100644--- a/static/js/billing/upgrade.js+++ b/static/js/billing/upgrade.js@@ -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();});diff --git a/static/js/global.d.ts b/static/js/global.d.tsindex 6474d35dae3..bdefb78d03f 100644--- a/static/js/global.d.ts+++ b/static/js/global.d.ts@@ -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;