mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06: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 8f10f9b1bc
.
* 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);
|