Usage track now internal to tracking
Summary: Usage tracking comes from Electron's `main.tsx`. There's a timer that dispatches an IPC event every 60 seconds. This is all good for Electron builds. For non-electron builds, there's no such thing as IPC. So, react to the IPC event whenever necessary but also handle the interval internally such that usage is tracked independently of explicit callers. Reviewed By: antonk52 Differential Revision: D47053404 fbshipit-source-id: f17694e65eed18678b45a2e815813bafab69c3f1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fe12a908fb
commit
dac8c5b213
@@ -118,13 +118,6 @@ let deeplinkURL: string | undefined = argv.url;
|
||||
let filePath: string | undefined = argv.file;
|
||||
let didMount = false;
|
||||
|
||||
// tracking
|
||||
setInterval(() => {
|
||||
if (win) {
|
||||
win.webContents.send('trackUsage');
|
||||
}
|
||||
}, 60 * 1000);
|
||||
|
||||
// check if we already have an instance of this app open
|
||||
const gotTheLock = app.requestSingleInstanceLock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user