#488: Added check for initial tmp image

This commit is contained in:
Thomas Young
2023-04-25 13:14:16 -05:00
parent bb438efed4
commit acb289dd98
+5 -1
View File
@@ -2,7 +2,9 @@
let lastHeadImg = null;
notificationButton = null
let notificationButton = null;
const regExpTempImage = /.*tmp.*.png/g;
onUiUpdate(function(){
if(notificationButton == null){
@@ -23,6 +25,8 @@ onUiUpdate(function(){
if (headImg == null || headImg == lastHeadImg) return;
if (headImg.search(regExpTempImage) != -1) return;
lastHeadImg = headImg;
// play notification sound if available