Skip to content

Commit d10fc6c

Browse files
committed
collaboration improvements + screenshot support
1 parent 035ea0c commit d10fc6c

File tree

14 files changed

+1407
-823
lines changed

14 files changed

+1407
-823
lines changed

src/addons/addons/collaboration/_manifest_entry.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ const manifest = {
99
"url": "userscript.js"
1010
}
1111
],
12+
"settings": [
13+
{
14+
"id": "disableBlackbox",
15+
"name": "Disable Flight Recorder",
16+
"type": "boolean",
17+
"default": false
18+
}
19+
],
20+
"info": [
21+
{
22+
"text": "WARNING: Disabling the Flight Recorder will make it impossible for developers to debug issues or desyncs you encounter.",
23+
"type": "warning",
24+
"id": "blackboxWarning"
25+
}
26+
],
1227
"dynamicDisable": true,
1328
"tags": [
1429
"new"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// helpers/console.js
2+
import { recorder } from './DebugRecorder.js';
3+
4+
export class CollaborationConsole {
5+
constructor() {}
6+
7+
static log(...args) {
8+
console.log(...args);
9+
recorder.log('LOG', args);
10+
}
11+
12+
static warn(...args) {
13+
console.warn(...args);
14+
recorder.log('WARN', args);
15+
}
16+
17+
static error(...args) {
18+
console.error(...args);
19+
recorder.log('ERROR', args);
20+
}
21+
22+
static recordYjs(direction, type, data) {
23+
recorder.recordYjsEvent(direction, type, data);
24+
}
25+
}
26+
27+
export default CollaborationConsole;

0 commit comments

Comments
 (0)