static searchRequested(action, win) {
    if (action !== 'application:find') {
      return;
    }
    if (win.webContents.getURL().indexOf('search-bar') !== -1) {
      // ctrl+f from search bar.
      return;
    }
    let srv = ContentSearchService.getService(win);
    if (srv && srv.isOpened()) {
      srv.focus();
      return;
    }
    if (!srv) {
      srv = new ContentSearchService(win);
    }
    srv.open();
  }
/**
   * Event handler for menu actions.
   *
   * @param {String} action Menu action
   * @param {BrowserWindow} win Owner window
   */
Event handler for menu actions.
@param {String} action Menu action
@param {BrowserWindow} win Owner window
Event handler for menu actions . @param { String } action Menu action @param { BrowserWindow } win Owner window
static searchRequested(action, win) {
    if (action !== 'application:find') {
      return;
    }
    if (win.webContents.getURL().indexOf('search-bar') !== -1) {
      return;
    }
    let srv = ContentSearchService.getService(win);
    if (srv && srv.isOpened()) {
      srv.focus();
      return;
    }
    if (!srv) {
      srv = new ContentSearchService(win);
    }
    srv.open();
  }
static searchRequested ( action , win ) { if ( action !== 'application:find' ) { return ; } if ( win . webContents . getURL ( ) . indexOf ( 'search-bar' ) !== - 1 ) { return ; } let srv = ContentSearchService . getService ( win ) ; if ( srv && srv . isOpened ( ) ) { srv . focus ( ) ; return ; } if ( ! srv ) { srv = new ContentSearchService ( win ) ; } srv . open ( ) ; }
Event handler for menu actions.
Event handler for menu actions .
// ctrl+f from search bar.