Feature-flag the StorableSize implementation
This commit is contained in:
parent
4a1469ad70
commit
a0f20a586f
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue