Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
don't listen to bad advice :)
Install types for chrome https://www.npmjs.com/package/@types/chrome
and then create a token for the injector somewhere.
export const CHROME = new InjectionToken('CHROME');
providers: [
...
{
provide: CHROME,
useValue: window.chrome,
}
...
]
constructor(
@Inject(CHROME) private chrome: chrome,
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question