angular/devtools/projects/ng-devtools/src/lib/application-providers/window_provider.ts
hawkgs 4f3ad98466 refactor(devtools): styles management (#59589)
- Move all styles to ng-devtools/src/styles.
- Create a BrowserService that detects the browsers and adds it as a class to the body. Move global browser styles.
- Create theme mixins that incorporate the browser type into them.
- Refactor some of the affected code along with the introduced changes.

PR Close #59589
2025-02-12 10:47:02 -08:00

16 lines
407 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {InjectionToken, Provider} from '@angular/core';
export const WINDOW = new InjectionToken<Window>('WINDOW');
export const WINDOW_PROVIDER: Provider = {
provide: WINDOW,
useValue: window,
};