Mobile: only print debug output if there's information

On many devices the Screen property doesn't give us a manufacturer,
model, or name.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-09-23 13:55:44 -07:00
parent 45106260dd
commit d635d5de1f

View file

@ -678,7 +678,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
Component.onCompleted: {
// try to see if we can detect certain device vendors through these properties
console.log("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
if (Screen.manufacturer + " " + Screen.model + " " + Screen.name !== " ")
console.log("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
rootItem.visible = true
diveList.opacity = 1
rootItem.opacity = 1