Feature-flag the StorableSize implementation

This commit is contained in:
Oliver-Akins 2024-09-29 00:18:57 -06:00
parent 4a1469ad70
commit a0f20a586f

View file

@ -8,6 +8,12 @@ import { DialogManager } from "../../utils/DialogManager.mjs";
* @returns The augmented class
*/
export function SizeStorable(cls) {
// Don't augment class when the feature isn't enabled
if (!taf.FEATURES.STORABLE_SHEET_SIZE) {
return cls;
}
return class SizeStorableClass extends cls {
constructor(doc, opts) {