Skip to content

Commit

Permalink
config: Set an applicationName for statistics
Browse files Browse the repository at this point in the history
Jitsi server owners may want to enable statistics on their servers. Set
an applicationName so stats can be correctly listed.
  • Loading branch information
bekriebel committed May 31, 2021
1 parent 1c19159 commit 1da9b57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/JitsiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,8 @@ export default class JitsiClient {
delete config.startAudioMuted;
delete config.startVideoMuted;

// Remove callStats settings to avoid errors
delete config.callStatsID;
delete config.callStatsSecret;
delete config.callStatsCustomScriptUrl;
// Set an application name in case statistics are enabled
config.applicationName = `FVTT-${game.data.version} ${MODULE_NAME}-${game.modules.get(MODULE_NAME).data.version}`;
}

sendJoinMessage() {
Expand Down

0 comments on commit 1da9b57

Please sign in to comment.