Disable telemetry

This commit is contained in:
LeenkxTeam 2025-01-24 06:26:10 +00:00
parent 00f8c30894
commit 0f916280f6

View File

@ -3,7 +3,7 @@ const path = require('path')
const Cast = require('../lib/cast') const Cast = require('../lib/cast')
const { dispatch } = require('../lib/dispatcher') const { dispatch } = require('../lib/dispatcher')
const telemetry = require('../lib/telemetry') // const telemetry = require('../lib/telemetry')
const { UnplayableFileError, UnplayableTorrentError } = require('../lib/errors') const { UnplayableFileError, UnplayableTorrentError } = require('../lib/errors')
const sound = require('../lib/sound') const sound = require('../lib/sound')
const TorrentPlayer = require('../lib/torrent-player') const TorrentPlayer = require('../lib/torrent-player')
@ -352,7 +352,7 @@ module.exports = class PlaybackController {
// Save volume (this session only, not in state.saved) // Save volume (this session only, not in state.saved)
state.previousVolume = state.playing.volume state.previousVolume = state.playing.volume
if (!state.playing.isReady) telemetry.logPlayAttempt('abandoned') // user gave up waiting // if (!state.playing.isReady) telemetry.logPlayAttempt('abandoned') // user gave up waiting
// Reset the window contents back to the home screen // Reset the window contents back to the home screen
state.playing = State.getDefaultPlayState() state.playing = State.getDefaultPlayState()