Skip to content

Commit

Permalink
add force stop
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Sep 17, 2024
1 parent d15dbb6 commit 978253a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/personal/set_bypass.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ try {
if ($intent.parameter === "内地") {
bypass_cellular = false;
}
else if ($intent.parameter === "f0rC3") { //force bypass regardless of network
$persistentStore.write(true, "bypass_wifi");
}
else {
bypass_cellular = true;
}
$persistentStore.write(bypass_cellular, "bypass_cellular");
}
catch (err) { // triggered by network-changed event, no `$intent` passed in
catch (err) { // triggered by network-changed event, no `$intent` passed in
if ($network.wifi.ssid) {
if (GLOBAL_WIFI.includes($network.wifi.ssid)){
bypass_wifi = true;
Expand Down

0 comments on commit 978253a

Please sign in to comment.