Skip to content

Commit 539b70f

Browse files
committed
fix
+ leaking Blob resource + scss lint + extra `}`
1 parent d1c8cee commit 539b70f

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

booklore-ui/src/app/features/readers/pdf-reader/pdf-reader.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ export class PdfReaderComponent implements OnInit, OnDestroy {
192192
this.appSettingsSubscription.unsubscribe();
193193
}
194194
this.updateProgress();
195+
196+
if (this.bookData?.startsWith('blob:')) {
197+
URL.revokeObjectURL(this.bookData);
198+
}
195199
}
196200

197201
closeReader = (): void => {

booklore-ui/src/app/features/settings/local-settings/local-settings.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
.settings-title {
1010
@include settings.settings-page-title;
11+
1112
margin-bottom: 0.75rem;
1213
}
1314

@@ -23,11 +24,13 @@
2324

2425
.section-header {
2526
@include settings.settings-section-header;
27+
2628
margin-bottom: 1rem;
2729
}
2830

2931
.section-title {
3032
@include settings.settings-section-title;
33+
3134
margin: 0;
3235
}
3336

@@ -41,6 +44,7 @@
4144

4245
.setting-item {
4346
@include settings.settings-item;
47+
4448
display: flex;
4549
align-items: center;
4650
justify-content: space-between;

frontend/src/app/shared/service/cache-storage.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export class CacheStorageService {
103103
.then((keys) => Promise.all(keys.map((key) => this.delete(key.url))))
104104
.then(() => undefined);
105105
}
106-
}
107106

108107
getCacheSizeInBytes(): Promise<number> {
109108
return this.cache()

0 commit comments

Comments
 (0)