I am building an app using electron and react. In that i need to conditionally enable and disable hardware acceleration of app. I can disable it as below. But I did not find any thing in electron documentation to enable it back. How can I do that?
import { app, BrowserWindow } from 'electron';
....
....
app.disableHardwareAcceleration()