packages/plugin-electron-app-breadcrumbs/app-breadcrumbs.js
Function load
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load (client) {
if (!client._isBreadcrumbTypeEnabled(BREADCRUMB_STATE)) {
return
}
Function attachBrowserWindowListeners
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function attachBrowserWindowListeners (leaveBreadcrumb, browserWindow) {
// the moved event fires too frequently to add a breadcrumb each time
const onMoved = debounce(() => {
// it's possible for the window to be destroyed at this point because we
// debounce this callback. If we try to use 'getPosition' when the window is