Browse Source

config: add trailing commas and 'end' entry for peacy JSON

Prevent possible json parse errors when the configuration values are
commented or commented out.
master
Felix Wolfsteller 5 years ago
parent
commit
7576f850e9
No account linked to committer's email address
1 changed files with 15 additions and 10 deletions
  1. 15
    10
      config.js

+ 15
- 10
config.js View File

311
     // callStatsSecret: '',
311
     // callStatsSecret: '',
312
 
312
 
313
     // enables sending participants display name to callstats
313
     // enables sending participants display name to callstats
314
-    // enableDisplayNameInStats: false
314
+    // enableDisplayNameInStats: false,
315
 
315
 
316
     // enables sending participants email if available to callstats and other analytics
316
     // enables sending participants email if available to callstats and other analytics
317
-    // enableEmailInStats: false
317
+    // enableEmailInStats: false,
318
 
318
 
319
     // Privacy
319
     // Privacy
320
     //
320
     //
390
         // shard: "shard1",
390
         // shard: "shard1",
391
         // region: "europe",
391
         // region: "europe",
392
         // userRegion: "asia"
392
         // userRegion: "asia"
393
-    }
393
+    },
394
 
394
 
395
     // Information for the chrome extension banner
395
     // Information for the chrome extension banner
396
     // chromeExtensionBanner: {
396
     // chromeExtensionBanner: {
404
     //             path: 'jitsi-logo-48x48.png'
404
     //             path: 'jitsi-logo-48x48.png'
405
     //         }
405
     //         }
406
     //     ]
406
     //     ]
407
-    // }
407
+    // },
408
 
408
 
409
     // Local Recording
409
     // Local Recording
410
     //
410
     //
422
     //     format: 'flac'
422
     //     format: 'flac'
423
     //
423
     //
424
 
424
 
425
-    // }
425
+    // },
426
 
426
 
427
     // Options related to end-to-end (participant to participant) ping.
427
     // Options related to end-to-end (participant to participant) ping.
428
     // e2eping: {
428
     // e2eping: {
434
     //   // with the measured RTT will be sent. Defaults to 60000, set
434
     //   // with the measured RTT will be sent. Defaults to 60000, set
435
     //   // to <= 0 to disable.
435
     //   // to <= 0 to disable.
436
     //   analyticsInterval: 60000,
436
     //   analyticsInterval: 60000,
437
-    //   }
437
+    //   },
438
 
438
 
439
     // If set, will attempt to use the provided video input device label when
439
     // If set, will attempt to use the provided video input device label when
440
     // triggering a screenshare, instead of proceeding through the normal flow
440
     // triggering a screenshare, instead of proceeding through the normal flow
441
     // for obtaining a desktop stream.
441
     // for obtaining a desktop stream.
442
     // NOTE: This option is experimental and is currently intended for internal
442
     // NOTE: This option is experimental and is currently intended for internal
443
     // use only.
443
     // use only.
444
-    // _desktopSharingSourceDevice: 'sample-id-or-label'
444
+    // _desktopSharingSourceDevice: 'sample-id-or-label',
445
 
445
 
446
     // If true, any checks to handoff to another application will be prevented
446
     // If true, any checks to handoff to another application will be prevented
447
     // and instead the app will continue to display in the current browser.
447
     // and instead the app will continue to display in the current browser.
448
-    // disableDeepLinking: false
448
+    // disableDeepLinking: false,
449
 
449
 
450
     // A property to disable the right click context menu for localVideo
450
     // A property to disable the right click context menu for localVideo
451
     // the menu has option to flip the locally seen video for local presentations
451
     // the menu has option to flip the locally seen video for local presentations
452
-    // disableLocalVideoFlip: false
452
+    // disableLocalVideoFlip: false,
453
 
453
 
454
     // Deployment specific URLs.
454
     // Deployment specific URLs.
455
     // deploymentUrls: {
455
     // deploymentUrls: {
459
     //    // If specified a 'Download our apps' button will be displayed in the overflow menu with a link
459
     //    // If specified a 'Download our apps' button will be displayed in the overflow menu with a link
460
     //    // to the specified URL for an app download page.
460
     //    // to the specified URL for an app download page.
461
     //    downloadAppsUrl: 'https://docs.example.com/our-apps.html'
461
     //    downloadAppsUrl: 'https://docs.example.com/our-apps.html'
462
-    // }
462
+    // },
463
 
463
 
464
     // List of undocumented settings used in jitsi-meet
464
     // List of undocumented settings used in jitsi-meet
465
     /**
465
     /**
511
      startBitrate
511
      startBitrate
512
      */
512
      */
513
 
513
 
514
+
515
+  // Allow all above example options to include a trailing comma and
516
+  // prevent fear when commenting out the last value.
517
+  make_json_parser_happy: 'even if last key had a trailing comma'
518
+  // no configuration value should follow this line.
514
 };
519
 };
515
 
520
 
516
 /* eslint-enable no-unused-vars, no-var */
521
 /* eslint-enable no-unused-vars, no-var */

Loading…
Cancel
Save