- {showImagePreview ?
+ {showImagePreview && imageUrl ?
:
diff --git a/src/types/downloads.ts b/src/types/downloads.ts
index 9598f1891ab..32a51307a7d 100644
--- a/src/types/downloads.ts
+++ b/src/types/downloads.ts
@@ -17,6 +17,7 @@ export type DownloadedItem = {
addedAt: number;
receivedBytes: number;
totalBytes: number;
+ bookmark?: string;
}
export type DownloadedItems = Record
;
diff --git a/src/types/window.ts b/src/types/window.ts
index 346dd012bca..cb188ebfc07 100644
--- a/src/types/window.ts
+++ b/src/types/window.ts
@@ -20,5 +20,8 @@ declare global {
timers: {
setImmediate: typeof setImmediate;
};
+ mas: {
+ getThumbnailLocation: (location: string) => Promise;
+ };
}
}