Added a fallback for the "boxbilling" object.

This commit is contained in:
evrifaessa committed 2022-11-20 22:24:28 +03:00
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);
}
}