Adds useful debug features to your Electron app
86
Build a utility for Electron applications that provides a convenient way to refresh browser windows during development, ensuring that the latest changes are always loaded by bypassing the browser cache.
Your implementation should provide a function that:
Create a test file at ../test/refresh.test.js with the following test cases:
@generates
/**
* Reloads a browser window, ignoring the cache to ensure fresh content.
*
* @param {BrowserWindow} [window] - The window to reload. If not provided, uses the focused window.
*/
function refresh(window) {
// Implementation here
}
module.exports = { refresh };Provides debugging utilities for Electron applications, including window refresh capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-electron-debugdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10