Skip to content

Commit

Permalink
Fix: Using the first image as a poster does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Jan 23, 2024
1 parent 683a08a commit dfd6c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Show error message if continue reading file does not exist [`7aee55c`](https://github.com/ollm/OpenComic/commit/7aee55ca5dac6b937824728b7ded116dc00c28df)
- Support background music from folder: MP3, M4A, WEBM, WEBA, OGG, OPUS, WAV, FLAC [`26947a2`](https://github.com/ollm/OpenComic/commit/26947a297868e86069cc6daca77e1a3f016d0705)
- Now when applying Webtoon mode the vertical margin is 0
- Now when applying Webtoon mode the vertical margin is 0 [`683a08a`](https://github.com/ollm/OpenComic/commit/683a08aad3a6d947004ad77476184d613718b098)

##### 🐛 Bug Fixes

- node-zstd not have native dependencies in arm64 build (Linux and macOS) [`e906f21`](https://github.com/ollm/OpenComic/commit/e906f212dae36c43d514beda44fba62e5ca26be5)
- Manga mode not working in epub [`a901754`](https://github.com/ollm/OpenComic/commit/a901754a4274687cddbfa3820ca3667b8b80e6ee)
- eBook not working with decimal device pixel ratio (1.5, 2.5, etc) [`4962724`](https://github.com/ollm/OpenComic/commit/496272442747e466638e890a187f84b100deda14)
- Blurry cover/poster images [`23ae46d`](https://github.com/ollm/OpenComic/commit/23ae46d3d77847f5262f10799a21d7ee0141b226)
- Using the first image as a poster does not work

## [v1.1.0](https://github.com/ollm/OpenComic/releases/tag/v1.1.0) (13-01-2024)

Expand Down
8 changes: 4 additions & 4 deletions scripts/file-manager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var unzip = false, unrar = false, un7z = false, bin7z = false, untar = false, unpdf = false, fastXmlParser = false, fileType = false;

var file = function(path, config = false) {
var file = function(path, _config = false) {

this.path = path;

Expand All @@ -17,7 +17,7 @@ var file = function(path, config = false) {
only: false,
};

if(config) this.config = {...this.config, ...config};
if(_config) this.config = {...this.config, ..._config};

this.updateConfig = function(config) {

Expand Down Expand Up @@ -2901,8 +2901,8 @@ window.addEventListener('resize', function() {
});

module.exports = {
file: function(path, config = false) {
return new file(path, config);
file: function(path, _config = false) {
return new file(path, _config);
},
fileCompressed: function(path, realPath = false, forceType = false, prefixes = false){ // This consider moving it to a separate file
return new fileCompressed(path, realPath, forceType, prefixes);
Expand Down

0 comments on commit dfd6c74

Please sign in to comment.