diff options
author | David Phillips <david@sighup.nz> | 2017-01-15 17:57:06 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-01-15 17:57:06 +1300 |
commit | 646b3fec9f07d0fd82aca54881d2d7cb47a4f74e (patch) | |
tree | 3cc5b1c482644ba6958bf9881eb794373f1f678a | |
parent | c7b7eb100f1a04bbcd02cd0a313e1c04f5560e87 (diff) | |
download | petrichor-646b3fec9f07d0fd82aca54881d2d7cb47a4f74e.tar.xz |
Add null check for user.image
-rw-r--r-- | petrichor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/petrichor.js b/petrichor.js index fa4a100..87d99ca 100644 --- a/petrichor.js +++ b/petrichor.js @@ -150,7 +150,7 @@ function start() { user = lightdm.users[i]; - if (user.image.match(/\.face$/)) + if (user.image == null || user.image.match(/\.face$/)) image = '/usr/share/icons/Adwaita/256x256/emotes/face-laugh.png'; else image = user.image; |