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 fd1aa70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/snappybtn/boot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
let _setWatch = setWatch;
global.setWatch = (fn,pin,opt) => {
if (opt && opt.edge && opt.edge!="both" && global.__FILE__!="runplus.app.js") opt.edge = "rising";
let name = global.__FILE__ || "";
if (opt && opt.edge && opt.edge!="both" && !name.includes("run")) opt.edge = "rising";
return _setWatch(fn, pin, opt);
};
}

0 comments on commit fd1aa70

Please sign in to comment.