/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/projects/shell-browser/src/app/devtools-connected-flag.ts
20 строк
803 B
SkyZeroZx
feat(devtools): Adds deep linking from Chrome Performance panel
06 июл 2026, 23:32
06 июл 2026, 23:32
95f56d3
Код
Авторство
О чём код?
/** * @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 */ /** * This content script runs at `document_start` in the MAIN world (Chrome MV3) * so it executes in the page's JavaScript context **before** any page scripts, * including Angular. * * It sets a global flag that `@angular/core`'s profiler checks when deciding * whether to emit `angular-devtools://` deep link URLs in `console.timeStamp` * calls. The flag is only set when the Angular DevTools extension is installed, * ensuring that custom-scheme links never appear in performance traces on * browsers where they wouldn't be handled. */ (window as any).__NG_DEVTOOLS_CONNECTED__ = true;