Skip to content

Commit

Permalink
Fixes navigation bar on the Wallet page.
Browse files Browse the repository at this point in the history
Fixes brave/brave-browser#12414

Related to e218200

Disabled trusted types CSP.
  • Loading branch information
mkarolin committed Oct 30, 2020
1 parent 9abb939 commit db69524
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions browser/ui/webui/brave_wallet_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ void WalletDOMHandler::RegisterMessages() {
} // namespace

BraveWalletUI::BraveWalletUI(content::WebUI* web_ui, const std::string& name)
: BasicUI(web_ui, name, kBraveWalletGenerated,
kBraveWalletGeneratedSize, IDR_BRAVE_WALLET_HTML) {
: BasicUI(web_ui,
name,
kBraveWalletGenerated,
kBraveWalletGeneratedSize,
IDR_BRAVE_WALLET_HTML,
/*disable_trusted_types_csp=*/true) {
web_ui->AddMessageHandler(std::make_unique<WalletDOMHandler>());
}

Expand Down

0 comments on commit db69524

Please sign in to comment.