function search(searchQuery) {
    const authUrl = overrideDefaultSearchOnce && helpers.parseAuthUrl(this.settings.tab.url);

    if (overrideDefaultSearchOnce && this.settings.authRequested && authUrl) {
        const authUrlInfo = new BrowserpassURL(authUrl);
        searchQuery = authUrlInfo.validDomain ? authUrlInfo.domain : authUrlInfo.hostname ?? "";
        this.results = helpers.filterSortLogins(this.logins, searchQuery, true);
    } else {
        this.results = helpers.filterSortLogins(this.logins, searchQuery, this.currentDomainOnly);
    }
    overrideDefaultSearchOnce = false;
}
Run a search

@param string searchQuery Search query
@return void