PicList/src/renderer/utils/common.ts

11 lines
361 B
TypeScript
Raw Normal View History

const isDevelopment = process.env.NODE_ENV !== 'production'
/* eslint-disable camelcase */
2021-04-10 09:01:55 -04:00
export const handleTalkingDataEvent = (data: ITalkingDataOptions) => {
const { EventId, Label = '', MapKv = {} } = data
MapKv.from = window.location.href
window.TDAPP.onEvent(EventId, Label, MapKv)
if (isDevelopment) {
2021-04-10 09:01:55 -04:00
console.log('talkingData', data)
}
}