|
|
@@ -1667,12 +1667,8 @@ class SymjaConsole {
|
|
|
}
|
|
|
|
|
|
startMcpPollingIfNeeded() {
|
|
|
- if (!this.getMcpEnabled()) {
|
|
|
- console.log('MCP polling skipped: getMcpEnabled=false');
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (!this.getMcpEnabled()) return;
|
|
|
if (!this.mcpPollTimer) {
|
|
|
- console.log('MCP polling started');
|
|
|
this.mcpPollTimer = setInterval(() => this.pollMcpEvents(), 1000);
|
|
|
}
|
|
|
}
|
|
|
@@ -2139,7 +2135,6 @@ class SymjaConsole {
|
|
|
try {
|
|
|
if (typeof Android === 'undefined' || !Android.getMcpEvents) return;
|
|
|
const json = Android.getMcpEvents();
|
|
|
- if (json && json !== '[]') console.log('MCP poll got events:', json.substring(0, 200));
|
|
|
if (!json || json === '[]') return;
|
|
|
const events = JSON.parse(json);
|
|
|
events.forEach(ev => {
|