Skip to content

Commit dfd6c74

Browse files
committed
Fix: Using the first image as a poster does not work
1 parent 683a08a commit dfd6c74

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

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

1515
##### 🐛 Bug Fixes
1616

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

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

scripts/file-manager.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var unzip = false, unrar = false, un7z = false, bin7z = false, untar = false, unpdf = false, fastXmlParser = false, fileType = false;
22

3-
var file = function(path, config = false) {
3+
var file = function(path, _config = false) {
44

55
this.path = path;
66

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

20-
if(config) this.config = {...this.config, ...config};
20+
if(_config) this.config = {...this.config, ..._config};
2121

2222
this.updateConfig = function(config) {
2323

@@ -2901,8 +2901,8 @@ window.addEventListener('resize', function() {
29012901
});
29022902

29032903
module.exports = {
2904-
file: function(path, config = false) {
2905-
return new file(path, config);
2904+
file: function(path, _config = false) {
2905+
return new file(path, _config);
29062906
},
29072907
fileCompressed: function(path, realPath = false, forceType = false, prefixes = false){ // This consider moving it to a separate file
29082908
return new fileCompressed(path, realPath, forceType, prefixes);

0 commit comments

Comments
 (0)