From cee1c459c78c661afa68bd1e58f5dbb31289c36a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 13 Nov 2017 16:20:54 +0900 Subject: [PATCH] Do not accidentally change the behavior of did-change-theme-color --- atom/browser/api/atom_api_web_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 4bc6c081023..7df905a8ee9 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -770,7 +770,7 @@ void WebContents::DidChangeThemeColor(SkColor theme_color) { if (theme_color != SK_ColorTRANSPARENT) { Emit("did-change-theme-color", atom::ToRGBHex(theme_color)); } else { - Emit("did-change-theme-color", atom::ToRGBHex(SK_ColorTRANSPARENT)); + Emit("did-change-theme-color", nullptr); } }