diff --git a/apps/snappybtn/boot.js b/apps/snappybtn/boot.js index 3c9a6e14397..a955545476f 100644 --- a/apps/snappybtn/boot.js +++ b/apps/snappybtn/boot.js @@ -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); }; }