mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 20:52:10 +08:00

* move analytics identifiers to backend * implement hash function * grab secret from env * expose and retrieve intercom secret from config * concat email with appUrl to ensure uniqueness * revert to just using email * Revert "revert to just using email" This reverts commit 8f10f9b1bcb6da80c8002cd8e402217cf455634b. * add docstring
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import { attachDebugger, createLogger } from '@grafana/ui';
|
|
|
|
export function loadScript(url: string, async = false) {
|
|
return new Promise((resolve) => {
|
|
const script = document.createElement('script');
|
|
script.onload = resolve;
|
|
script.src = url;
|
|
script.async = async;
|
|
document.head.appendChild(script);
|
|
});
|
|
}
|
|
|
|
/** @internal */
|
|
export const echoLogger = createLogger('EchoSrv');
|
|
export const echoLog = echoLogger.logger;
|
|
|
|
attachDebugger('echo', undefined, echoLogger);
|