diff --git a/src/client/client.ts b/src/client/client.ts index 7a9c2e4..e3e2354 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -73,8 +73,16 @@ onNet('screenshot_basic:requestScreenshot', (options: any, url: string) => { options.resultURL = null; options.correlation = registerCorrelation(() => {}); + + const realOptions = { + encoding: options.encoding, + targetURL: options.targetURL, + targetField: options.targetField, + resultURL: options.resultURL, + correlation: options.correlation, + }; SendNuiMessage(JSON.stringify({ - request: options + request: realOptions })); -}); \ No newline at end of file +});