You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/05/29 10:04:39 UTC

cordova-windows git commit: CB-12784 Fixed a crash on Windows 10 Creators Update

Repository: cordova-windows
Updated Branches:
  refs/heads/master 7fe4c2122 -> 279816743


CB-12784 Fixed a crash on Windows 10 Creators Update


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/27981674
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/27981674
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/27981674

Branch: refs/heads/master
Commit: 279816743f995510a1070a0bf77a3180f11e468a
Parents: 7fe4c21
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Fri May 12 18:50:48 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Fri May 12 18:50:48 2017 +0300

----------------------------------------------------------------------
 cordova-js-src/splashscreen.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/27981674/cordova-js-src/splashscreen.js
----------------------------------------------------------------------
diff --git a/cordova-js-src/splashscreen.js b/cordova-js-src/splashscreen.js
index 6fe918b..99b60d9 100644
--- a/cordova-js-src/splashscreen.js
+++ b/cordova-js-src/splashscreen.js
@@ -212,7 +212,7 @@ function exitFullScreen() {
 // Make title bg color match splashscreen bg color
 function colorizeTitleBar() {
     var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
-    if (appView.titleBar) {
+    if (isWin10UWP) {
         titleInitialBgColor = appView.titleBar.backgroundColor;
 
         appView.titleBar.backgroundColor = titleBgColor;
@@ -223,7 +223,7 @@ function colorizeTitleBar() {
 // Revert title bg color
 function revertTitleBarColor() {
     var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
-    if (appView.titleBar) {
+    if (isWin10UWP) {
         appView.titleBar.backgroundColor = titleInitialBgColor;
         appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org