Keep FOSSBILLING Global (#1024)

* Keep FOSSBILLING Global

* Update fossbilling.js

Remove boxbilling constant
This commit is contained in:
Jaap Marcus authored and GitHub committed 2023-03-30 23:17:31 +01:00
1 parent ca0c4ac723
commit e487cc4ba9
1 file changed
+1 -12
@@ -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 =====//