Skip to content

Commit

Permalink
Merge pull request #448 from d-i-t-a/develop
Browse files Browse the repository at this point in the history
2.3.0
  • Loading branch information
aferditamuriqi authored Mar 25, 2023
2 parents 02515c5 + fbe0e66 commit a843809
Show file tree
Hide file tree
Showing 24 changed files with 726 additions and 692 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d-i-t-a/reader",
"version": "2.2.2",
"version": "2.3.0",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/model/user-settings/UserSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export class UserSettings implements IUserSettings {
if (html) {
const rootElement = document.documentElement;
const body = HTMLUtilities.findRequiredElement(rootElement, "body");
if (this.view?.delegate.publication.isReflowable) {
if (this.view?.navigator.publication.isReflowable) {
// Apply font size
if (await this.getProperty(ReadiumCSS.FONT_SIZE_KEY)) {
html.style.setProperty(
Expand Down Expand Up @@ -516,7 +516,7 @@ export class UserSettings implements IUserSettings {
?.toString() ?? null
);
}
if (this.view?.delegate.publication.isReflowable) {
if (this.view?.navigator.publication.isReflowable) {
// Apply text alignment
if (await this.getProperty(ReadiumCSS.TEXT_ALIGNMENT_KEY)) {
if (
Expand Down Expand Up @@ -601,7 +601,7 @@ export class UserSettings implements IUserSettings {
HTMLUtilities.setAttr(rootElement, "data-viewer-theme", "day");
HTMLUtilities.setAttr(body, "data-viewer-theme", "day");
}
if (this.view?.delegate.publication.isReflowable) {
if (this.view?.navigator.publication.isReflowable) {
// Apply font family
if (await this.getProperty(ReadiumCSS.FONT_FAMILY_KEY)) {
html.style.setProperty(
Expand Down
Loading

0 comments on commit a843809

Please sign in to comment.