mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 06:00:53 +03:00
implemented amplitude metrics (#1141)
This commit is contained in:
@@ -24,11 +24,6 @@ var SENTRY_ID = '${config.sentry_id}';
|
||||
`;
|
||||
}
|
||||
|
||||
let ga = '';
|
||||
if (config.analytics_id) {
|
||||
ga = `var GOOGLE_ANALYTICS_ID = '${config.analytics_id}';`;
|
||||
}
|
||||
|
||||
module.exports = function(state) {
|
||||
const authConfig = state.authConfig
|
||||
? `var AUTH_CONFIG = ${JSON.stringify(state.authConfig)};`
|
||||
@@ -71,7 +66,6 @@ module.exports = function(state) {
|
||||
state.downloadMetadata ? raw(JSON.stringify(state.downloadMetadata)) : '{}'
|
||||
};
|
||||
${authConfig};
|
||||
${ga}
|
||||
${sentry}
|
||||
`;
|
||||
return state.cspNonce
|
||||
|
||||
Reference in New Issue
Block a user