mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(common): Add missing OnDestroy interface in PreconnectLinkChecker
The OnDestroy interface was implemented but not declared; this adds the missing interface declaration
(cherry picked from commit 207baad322)
This commit is contained in:
parent
4b318d0cc0
commit
752986bfc2
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import {
|
|||
InjectionToken,
|
||||
ɵformatRuntimeError as formatRuntimeError,
|
||||
DOCUMENT,
|
||||
OnDestroy,
|
||||
} from '@angular/core';
|
||||
|
||||
import {RuntimeErrorCode} from '../../errors';
|
||||
|
|
@ -53,7 +54,7 @@ export const PRECONNECT_CHECK_BLOCKLIST = new InjectionToken<Array<string | stri
|
|||
* thus there is no `ngDevMode` use in the code.
|
||||
*/
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class PreconnectLinkChecker {
|
||||
export class PreconnectLinkChecker implements OnDestroy {
|
||||
private document = inject(DOCUMENT);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue