diff --git a/browser/ui/webui/brave_adblock_ui.cc b/browser/ui/webui/brave_adblock_ui.cc index 4b69a651a97e..b05565fd767e 100644 --- a/browser/ui/webui/brave_adblock_ui.cc +++ b/browser/ui/webui/brave_adblock_ui.cc @@ -308,6 +308,12 @@ void AdblockDOMHandler::RefreshSubscriptionsList() { subscription.last_update_attempt.ToJsTime()); dict->SetDoubleKey("last_successful_update_attempt", subscription.last_successful_update_attempt.ToJsTime()); + if (subscription.homepage) { + dict->SetStringKey("homepage", *subscription.homepage); + } + if (subscription.title) { + dict->SetStringKey("title", *subscription.title); + } list_value->Append(std::move(dict)); } CallJavascriptFunction("brave_adblock.onGetListSubscriptions", *list_value); diff --git a/components/definitions/adBlock.d.ts b/components/definitions/adBlock.d.ts index fe64377e8ba9..abd47a992503 100644 --- a/components/definitions/adBlock.d.ts +++ b/components/definitions/adBlock.d.ts @@ -26,5 +26,7 @@ declare namespace AdBlock { last_update_attempt: number last_successful_update_attempt: number enabled: boolean + title?: string + homepage?: string } }