You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Give messagegui some extra time to add its remove function to
6
+
// Bangle.uiRemove, then attach msgtwscr remove logic.
7
+
setTimeout(
8
+
()=>{if(Bangle.uiRemove){
9
+
letshowMessageUIRemove=Bangle.uiRemove;
10
+
Bangle.uiRemove=function(){
11
+
Bangle.setOptions({wakeOnFaceUp:false});
12
+
showMessageUIRemove();
13
+
attachAfterTimeout();
14
+
}
15
+
}},
16
+
850)
17
+
}
18
+
19
+
letattachAfterTimeout=()=>{
20
+
setTimeout(()=>{
21
+
attach();
22
+
},700)// It feels like there's a more elegant solution than checking the filename after 700 milliseconds. But this at least seems to work w/o sometimes activating when it shouldn't.
23
+
}
24
+
1
25
// If doing regular loads, not Bangle.load, this is used:
},700)// It feels like there's a more elegant solution than checking the filename after 700 milliseconds. But this at least seems to work w/o sometimes activating when it shouldn't.
0 commit comments