mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Neaten garbage collection code (#4171)
# Description of Changes Slight tweaks to type checking code merged in #4126. Co-authored-by: James <[email protected]>
This commit is contained in:
@@ -519,9 +519,8 @@ export class EnhancedPDFProcessingService {
|
||||
this.notifyListeners();
|
||||
|
||||
// Force memory cleanup hint
|
||||
if (typeof window !== 'undefined' && window.gc) {
|
||||
let gc = window.gc;
|
||||
setTimeout(() => gc(), 100);
|
||||
if (typeof window !== 'undefined') {
|
||||
setTimeout(() => window.gc && window.gc(), 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user