Skip to content

Commit 742d518

Browse files
RKBoss6bobrippling
andauthored
Update apps/taglaunch/app.js
Co-authored-by: Rob Pilling <robpilling@gmail.com>
1 parent 0db209c commit 742d518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/taglaunch/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ let noShortcuts=shortcuts[0]==""&&shortcuts[1]==""&&shortcuts[2]=="";
8989

9090
let loadShortcut=function(idx){
9191
if(shortcuts[idx]!=""){
92-
if(settings.buzz)Bangle.buzz(25);
93-
setTimeout(function(){load(shortcuts[idx]+".app.js")},27); //let buzz have effect
92+
const p = settings.buzz ? Bangle.buzz(25) : Promise.resolve();
93+
p.then(() => load(shortcuts[idx]+".app.js"));
9494
}
9595
};
9696
// 10s of inactivity goes back to clock

0 commit comments

Comments
 (0)