parent
9c5596d86a
commit
18d9828b2b
|
@ -268,14 +268,18 @@ export async function executeImageAction(
|
||||||
* register responses on socket for Watch Actions
|
* register responses on socket for Watch Actions
|
||||||
*/
|
*/
|
||||||
socketEvents.onReq('watch', (action, ...args) => {
|
socketEvents.onReq('watch', (action, ...args) => {
|
||||||
if (action === 'getIIDSummary') {
|
try {
|
||||||
return getIIDSummary(...args);
|
if (action === 'getIIDSummary') {
|
||||||
} if (action === 'getIIDPixels') {
|
return getIIDSummary(...args);
|
||||||
return getIIDPixels(...args);
|
} if (action === 'getIIDPixels') {
|
||||||
} if (action === 'getSummaryFromArea') {
|
return getIIDPixels(...args);
|
||||||
return getSummaryFromArea(...args);
|
} if (action === 'getSummaryFromArea') {
|
||||||
} if (action === 'getPixelsFromArea') {
|
return getSummaryFromArea(...args);
|
||||||
return getPixelsFromArea(...args);
|
} if (action === 'getPixelsFromArea') {
|
||||||
|
return getPixelsFromArea(...args);
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// silently fail when file couldn't be parsed
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user