浏览代码

default write key to empty

Jeffrey Morgan 1 年之前
父节点
当前提交
45bf83ff58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/telemetry.ts

+ 1 - 1
app/src/telemetry.ts

@@ -4,7 +4,7 @@ import { v4 as uuidv4 } from 'uuid'
 const Store = require('electron-store')
 const store = new Store()
 
-export const analytics = new Analytics({ writeKey: process.env.TELEMETRY_WRITE_KEY })
+export const analytics = new Analytics({ writeKey: process.env.TELEMETRY_WRITE_KEY || '' })
 
 export function id(): string {
   const id = store.get('id')