From 3e55cf97694d4ee4bbbd6467971a25e62baf8477 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 10 Dec 2024 21:14:56 +0100 Subject: [PATCH] Migrate "readerWidth" reader setting --- src/modules/metadata/Metadata.constants.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/metadata/Metadata.constants.ts b/src/modules/metadata/Metadata.constants.ts index e9861833..24b602fb 100644 --- a/src/modules/metadata/Metadata.constants.ts +++ b/src/modules/metadata/Metadata.constants.ts @@ -289,6 +289,11 @@ export const METADATA_MIGRATIONS: IMetadataMigration[] = [ newValue: `${ReaderPageScaleMode.SCREEN}`, }, // END: fitPageToWindow + { + key: 'readerWidth', + oldValue: /[0-9]+/g, + newValue: (oldValue) => JSON.stringify({ value: Number(oldValue), enabled: true }), + }, ], }, ];