浏览代码

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 年前
父节点
当前提交
7576f850e9
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 15 次插入10 次删除
  1. 15
    10
      config.js

+ 15
- 10
config.js 查看文件

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

正在加载...
取消
保存