mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 02:53:52 +00:00
js: Convert static/js/billing/billing.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
db7d0f0a30
commit
ce9d1d2b4d
@@ -139,7 +139,6 @@
|
||||
"alert_words_ui": false,
|
||||
"attachments_ui": false,
|
||||
"avatar": false,
|
||||
"billing": false,
|
||||
"blueslip": false,
|
||||
"bot_data": false,
|
||||
"bridge": false,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
exports.initialize = function () {
|
||||
export function initialize() {
|
||||
helpers.set_tab("billing");
|
||||
|
||||
const stripe_key = $("#payment-method").data("key");
|
||||
@@ -33,10 +31,8 @@ exports.initialize = function () {
|
||||
]);
|
||||
e.preventDefault();
|
||||
});
|
||||
};
|
||||
|
||||
window.billing = exports;
|
||||
}
|
||||
|
||||
$(() => {
|
||||
exports.initialize();
|
||||
initialize();
|
||||
});
|
||||
|
||||
1
static/js/global.d.ts
vendored
1
static/js/global.d.ts
vendored
@@ -13,7 +13,6 @@ declare let admin: any;
|
||||
declare let alert_words_ui: any;
|
||||
declare let attachments_ui: any;
|
||||
declare let avatar: any;
|
||||
declare let billing: any;
|
||||
declare let blueslip: any;
|
||||
declare let bot_data: any;
|
||||
declare let buddy_data: any;
|
||||
|
||||
Reference in New Issue
Block a user