Skip to content

Commit

Permalink
fix: no trace message on empty app.css (#7135)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoldonev committed Apr 12, 2019
1 parent 82f7e24 commit 170d2a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tns-core-modules/ui/styling/style-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 170d2a8

Please sign in to comment.