Skip to content

Commit

Permalink
Service worker debug mode will default to the US notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Oct 5, 2024
1 parent 83c80c1 commit 53c2473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/vh_service_worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const DEBUG_MODE = false; // Will always display notification even if they are not new
const DEBUG_MODE = false; //Will switch the notification countries to "com"
const VINE_HELPER_API_V5_URL = "https://api.vinehelper.ovh";
//const VINE_HELPER_API_V5_URL = "http://127.0.0.1:3000";
const VINE_HELPER_API_V5_WS_URL = "wss://api.vinehelper.ovh";
Expand Down Expand Up @@ -127,7 +127,7 @@ function connectWebSocket() {

socket = io.connect(VINE_HELPER_API_V5_WS_URL, {
query: {
countryCode: Settings.get("general.country"),
countryCode: DEBUG_MODE ? "com" : Settings.get("general.country"),
uuid: Settings.get("general.uuid", false),
}, // Pass the country code as a query parameter
transports: ["websocket"],
Expand Down Expand Up @@ -222,7 +222,7 @@ async function fetchLast100Items(fetchAll = false) {

const content = {
api_version: 5,
country: vineCountry,
country: DEBUG_MODE ? "com" : vineCountry,
action: "get_latest_notifications",
uuid: Settings.get("general.uuid", false),
};
Expand Down

0 comments on commit 53c2473

Please sign in to comment.