Always register reader hotkeys
The hotkeys were never registered e.g. while loading or in case an error occurred
This commit is contained in:
@@ -241,7 +241,7 @@ export class ReaderService {
|
||||
isGlobal: boolean = false,
|
||||
profile?: ReadingMode,
|
||||
): void {
|
||||
if (!manga) {
|
||||
if (!manga || manga.id === -1) {
|
||||
return;
|
||||
}
|
||||
const key = getMetadataKey(setting, profile !== undefined ? [profile?.toString()] : undefined);
|
||||
@@ -305,7 +305,7 @@ export class ReaderService {
|
||||
isGlobal: boolean = false,
|
||||
profile?: string,
|
||||
): void {
|
||||
if (!manga) {
|
||||
if (!manga || manga.id === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user