Skip to content

Commit

Permalink
snappybtn: also disable for run app
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Jun 9, 2024
1 parent 35486e0 commit b79530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/snappybtn/boot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
let _setWatch = setWatch;
global.setWatch = (fn,pin,opt) => {
if (opt && opt.edge && opt.edge!="both" && global.__FILE__!="runplus.app.js") opt.edge = "rising";
if (opt && opt.edge && opt.edge!="both" && !global.__FILE__.includes("run")) opt.edge = "rising";
return _setWatch(fn, pin, opt);
};
}

0 comments on commit b79530f

Please sign in to comment.