mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
With this change, Firefox get a different tab icon when the dark theme is enabled fixes #52980 PR Close #64122
17 lines
515 B
TypeScript
17 lines
515 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
|
|
*/
|
|
|
|
/// <reference types="chrome"/>
|
|
const theme = chrome.devtools.panels.themeName;
|
|
chrome.devtools.panels.create(
|
|
'Angular',
|
|
// Firefox specifically displays the icon in the tab.
|
|
// the bw icon wasn't visible in dark mode
|
|
theme === 'dark' ? 'assets/icon16.png' : 'assets/icon-bw16.png',
|
|
'index.html',
|
|
);
|