chrome plugin: remove unused permission, minor reformatting

This commit is contained in:
Alexey Andreev 2023-08-14 19:28:36 +02:00
parent 22864c88f2
commit f33a7578d4
2 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ class DebuggerAgent {
this.port = 0;
this.disconnectCallbacks = null;
this.debuggee = { tabId : tab.id };
this.debuggee = { tabId: tab.id };
this.port = port;
this.tab = tab;
debuggerAgentMap[tab.id] = this;
@ -87,9 +87,9 @@ class DebuggerAgent {
chrome.debugger.sendCommand(this.debuggee, message.method, message.params, response => {
if (message.id) {
const responseToServer = {
id : message.id,
result : response,
error : response ? void 0 : chrome.runtime.lastError
id: message.id,
result: response,
error: response ? void 0 : chrome.runtime.lastError
};
this.sendMessage(responseToServer);
}
@ -151,7 +151,7 @@ chrome.debugger.onEvent.addListener((source, method, params) => {
if (!agent) {
return;
}
const message = { method : method, params : params };
const message = { method: method, params: params };
if (agent.pendingMessages) {
agent.pendingMessages.push(message);
} else if (agent.connection) {

View File

@ -3,9 +3,9 @@
"name": "TeaVM debugger agent",
"description": "TeaVM debugger agent, that sends RDP commands over WebSocket",
"version": "0.7.0",
"version": "0.7.1",
"permissions" : ["debugger", "activeTab", "tabs", "storage", "scripting"],
"permissions": ["debugger", "activeTab", "storage", "scripting"],
"action" : {
"default_icon": "teavm-16.png",