diff --git a/src/themes/admin_default/assets/js/fossbilling.js b/src/themes/admin_default/assets/js/fossbilling.js index c17a6f8df..d8dcca213 100644 --- a/src/themes/admin_default/assets/js/fossbilling.js +++ b/src/themes/admin_default/assets/js/fossbilling.js @@ -312,7 +312,7 @@ $.fn.simpleTabs = function () { };//end function -const FOSSBilling = { +globalThis.FOSSBilling = { message: (message, type = 'info') => { let color; switch (type) { @@ -360,17 +360,6 @@ const FOSSBilling = { } }; -/** - * Fallback for modules that still use the old "boxbilling" object. It will display deprecation warnings in the console and will be removed entirely in the future. - * @deprecated Will be removed in a future release. Use FOSSBilling.message() instead. - */ -const boxbilling = { - message: (message, type = 'info') => { - console.warn('The "boxbilling" object is deprecated and will be removed in a future release. Use FOSSBilling.message() instead.'); - FOSSBilling.message(message, type); - } -} - $(function () { //===== Global ajax methods =====//