MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _runOmniSearch

Function _runOmniSearch

apps/json-format/content-script.js:355–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers 1

_bindOmniToolbarFunction · 0.85

Calls 4

_isOmniModeFunction · 0.85
_renderOmniSearchStateFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected