| 353 | }; |
| 354 | |
| 355 | let _runOmniSearch = delta => { |
| 356 | if (!_isOmniMode() || !window.Formatter) { |
| 357 | return; |
| 358 | } |
| 359 | |
| 360 | let query = $('#fhJsonSearchInput').val(); |
| 361 | let state; |
| 362 | if (!query && Formatter.clearSearch) { |
| 363 | state = Formatter.clearSearch(); |
| 364 | } else if (delta && Formatter.nextSearch) { |
| 365 | state = Formatter.nextSearch(delta); |
| 366 | } else if (Formatter.search) { |
| 367 | state = Formatter.search(query); |
| 368 | } |
| 369 | |
| 370 | _renderOmniSearchState(state); |
| 371 | _refreshOmniSelectionState(); |
| 372 | }; |
| 373 | |
| 374 | let _toggleCurrentOriginExclusion = () => { |
| 375 | let origin = _getCurrentOriginPattern(); |
no test coverage detected