We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef44708 commit 4ed9e52Copy full SHA for 4ed9e52
1 file changed
src/bootstrap.js
@@ -51,6 +51,15 @@ const startCore = () => {
51
52
desktopCore = require('discord_desktop_core');
53
54
+ const desktopTTI = new Proxy({}, {
55
+ get: (target, prop) => {
56
+ if (typeof target[prop] === 'undefined') {
57
+ target[prop] = () => { };
58
+ }
59
+ return target[prop];
60
61
+ });
62
+
63
desktopCore.startup({
64
splashScreen: splash,
65
moduleUpdater,
@@ -75,7 +84,16 @@ const startCore = () => {
75
84
logger: {
76
85
initializeLogging: () => {},
77
86
ipcMainRendererLogger: () => {}
78
- }
87
+ },
88
+ analytics: new Proxy({}, {
89
90
+ if (prop === 'getDesktopTTI') return () => desktopTTI;
91
92
93
94
95
96
+ })
79
97
});
80
98
};
81
99
0 commit comments