Skip to content

Commit cccdfd5

Browse files
committed
chore: cleanup
1 parent baa1a08 commit cccdfd5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nativescript-angular/platform-common.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,8 @@ export class NativeScriptPlatformRef extends PlatformRef {
215215
launchView = this.appOptions.launchView;
216216
} else {
217217
launchView = new GridLayout();
218-
// Custom launch view color (useful when doing async app intializers
219-
// where you don't want a flash of undesirable color).
220-
const bgCol = this.appOptions && this.appOptions.backgroundColor ? this.appOptions.backgroundColor : "#fff";
221-
launchView.backgroundColor = new Color(bgCol);
218+
// Custom launch view color (useful when doing async app intializers where you don't want a flash of undesirable color)
219+
launchView.backgroundColor = new Color(this.appOptions && this.appOptions.backgroundColor ? this.appOptions.backgroundColor : '#fff');
222220
}
223221

224222
setRootPage(<any>launchView);

0 commit comments

Comments
 (0)