Skip to content

Commit 2d9cca5

Browse files
committed
Fix: Prevent app freeze when relative path receives undefined value
1 parent fbddd78 commit 2d9cca5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## v1.6.2 (dd-mm-yyyy)
8+
9+
##### 🐛 Bug Fixes
10+
11+
- Prevent app freeze when relative path receives undefined value
12+
713
## [v1.6.1](https://github.com/ollm/OpenComic/releases/tag/v1.6.1) (26-08-2025)
814

915
##### 🚀 New Features

scripts/relative.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const cacheResolve = new Map();
1818

1919
function resolve(relatives)
2020
{
21-
if(!relatives.includes('|||||'))
21+
if(!relatives || !relatives.includes('|||||'))
2222
return relatives;
2323

2424
if(cacheResolve.has(relatives))

0 commit comments

Comments
 (0)