From 170d2a84eb7423899bc03992c1616e0ffc915dbd Mon Sep 17 00:00:00 2001 From: Manol Donev Date: Fri, 12 Apr 2019 11:36:38 +0300 Subject: [PATCH] fix: no trace message on empty app.css (#7135) --- tns-core-modules/ui/styling/style-scope.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tns-core-modules/ui/styling/style-scope.ts b/tns-core-modules/ui/styling/style-scope.ts index 3c0823f41..74a5262f1 100644 --- a/tns-core-modules/ui/styling/style-scope.ts +++ b/tns-core-modules/ui/styling/style-scope.ts @@ -168,7 +168,8 @@ class CSSSource { if (!this._source && this._file) { this.load(); } - if (this._source) { + // [object Object] check guards against empty app.css file + if (this._source && this.source !== "[object Object]") { this.parseCSSAst(); } }