feat: export window.GIT_COMMIT_HASH (#6080)

This commit is contained in:
Zach Pomerantz 2023-03-07 13:54:59 -08:00 committed by GitHub
parent 5a2f81c4bf
commit de5816e573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

@ -63,6 +63,10 @@ const AMPLITUDE_PROXY_URL = process.env.REACT_APP_AMPLITUDE_PROXY_URL
const STATSIG_DUMMY_KEY = 'client-0000000000000000000000000000000000000000000'
const STATSIG_PROXY_URL = process.env.REACT_APP_STATSIG_PROXY_URL
const COMMIT_HASH = process.env.REACT_APP_GIT_COMMIT_HASH
// Dump some metadata into the window to allow client verification.
window.GIT_COMMIT_HASH = COMMIT_HASH
initializeAnalytics(AMPLITUDE_DUMMY_KEY, OriginApplication.INTERFACE, {
proxyUrl: AMPLITUDE_PROXY_URL,
defaultEventName: SharedEventName.PAGE_VIEWED,

@ -5,6 +5,8 @@ declare module '@metamask/jazzicon' {
}
interface Window {
GIT_COMMIT_HASH?: string
// walletLinkExtension is injected by the Coinbase Wallet extension
walletLinkExtension?: any
ethereum?: {