diff --git a/desktop/static/SupportJSClientPreload.js b/desktop/static/SupportJSClientPreload.js index da9dc0b43..32c33a9bd 100644 --- a/desktop/static/SupportJSClientPreload.js +++ b/desktop/static/SupportJSClientPreload.js @@ -23,12 +23,20 @@ ipcRenderer.on('parent-window-id', (event, message) => { flipperState.mainWindowId = message; }); +function cleanUpGWTArray(arr) { + const res = []; + for (let i = 0; i < arr.length; i++) { + res.push(arr[i]); + } + return res; +} + function initClient(plugins, appName) { if (flipperState.isClientInit) { return; } if (plugins) { - flipperState.plugins = plugins; + flipperState.plugins = cleanUpGWTArray(plugins); } if (appName) { flipperState.appName = appName;