summaryrefslogtreecommitdiff
path: root/chromium/components/metrics/debug/metrics_internals.ts
blob: ecd3d03ff29645cf2f4f10ea19baf4e8386dd0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {sendWithPromise} from 'chrome://resources/js/cr.m.js';
import {$} from 'chrome://resources/js/util.js';

document.addEventListener('DOMContentLoaded', function() {
  sendWithPromise('fetchClientId').then((clientId: string) => {
    $('content').textContent = clientId;
  });
});