mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Added a fallback for the "boxbilling" object.
This commit is contained in:
1 parent
39d2264309
commit
b78e1bcbc9
1 file changed
+9
-1
@@ -387,4 +387,12 @@ const FOSSBilling = {
|
||||
|
||||
toast.show();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// 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.
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user