From bf5c887c6c0c959b1474c40f48d3ce8769369936 Mon Sep 17 00:00:00 2001 From: mysticmomba Date: Thu, 18 Jun 2026 10:40:41 -0400 Subject: [PATCH] Updated Change log script, and builder script. --- build.sh | 3 +++ fakealert.html | 9 +++++++++ src/inject.js | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 build.sh create mode 100644 fakealert.html diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..63399b8 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd src-tauri && cargo clean +cargo tauri build --target x86_64-pc-windows-gnu \ No newline at end of file diff --git a/fakealert.html b/fakealert.html new file mode 100644 index 0000000..00e2f4f --- /dev/null +++ b/fakealert.html @@ -0,0 +1,9 @@ +var fake = document.createElement('div'); +fake.id = 'fake-alert'; +fake.innerHTML = 'FAKE TEST ALERT\nGeo: Test\nElapsed Time: 0:00:01'; +fake.style.position = 'fixed'; +fake.style.bottom = '0'; +fake.style.right = '0'; +fake.style.fontSize = '1px'; +fake.style.opacity = '0.01'; +document.body.appendChild(fake); \ No newline at end of file diff --git a/src/inject.js b/src/inject.js index 5dd3f73..0dd09c3 100644 --- a/src/inject.js +++ b/src/inject.js @@ -28,7 +28,9 @@ if (!seenAlerts[key]) { console.log('[DuressGuard] NEW ALERT:', key); if (window.__TAURI_INTERNALS__) { - window.__TAURI_INTERNALS__.invoke('alert_detected', { name: key }); + window.__TAURI_INTERNALS__.invoke('alert_detected', { name: key }) + .then(function () { console.log('[DuressGuard] Invoke succeeded'); }) + .catch(function (e) { console.log('[DuressGuard] Invoke failed:', e); }); } try { var ctx = new AudioContext();