Deepfake Authenticator commited on
Commit ·
25b4391
1
Parent(s): 7902802
chore: point extension to HF Space URL for deployment
Browse files- extension/background.js +1 -1
- extension/content.js +2 -2
- extension/popup.html +2 -2
- extension/popup.js +1 -1
extension/background.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
* 5. Result is sent to the content script overlay on the original tab
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
const API_BASE = '
|
| 13 |
const CAPTURE_SEC = 8; // Reduced from 20s — 8s gives enough frames for accurate detection
|
| 14 |
const OFFSCREEN_URL = chrome.runtime.getURL('offscreen.html');
|
| 15 |
|
|
|
|
| 9 |
* 5. Result is sent to the content script overlay on the original tab
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
const API_BASE = 'https://aarav13-authrix.hf.space';
|
| 13 |
const CAPTURE_SEC = 8; // Reduced from 20s — 8s gives enough frames for accurate detection
|
| 14 |
const OFFSCREEN_URL = chrome.runtime.getURL('offscreen.html');
|
| 15 |
|
extension/content.js
CHANGED
|
@@ -123,7 +123,7 @@ function showOverlay(mode = 'capture', url = '') {
|
|
| 123 |
overlay.addEventListener('click', e => { if (e.target === overlay) overlay.remove(); });
|
| 124 |
|
| 125 |
document.getElementById('authrix-open-app').onclick = () =>
|
| 126 |
-
window.open('
|
| 127 |
|
| 128 |
document.getElementById('authrix-reanalyze').onclick = () =>
|
| 129 |
chrome.runtime.sendMessage({ type: 'START_CAPTURE' });
|
|
@@ -249,7 +249,7 @@ function showError(message) {
|
|
| 249 |
}
|
| 250 |
if (errHint) {
|
| 251 |
errHint.textContent = isOffline
|
| 252 |
-
? '
|
| 253 |
: 'Make sure a video is playing before capturing.';
|
| 254 |
}
|
| 255 |
showState('error');
|
|
|
|
| 123 |
overlay.addEventListener('click', e => { if (e.target === overlay) overlay.remove(); });
|
| 124 |
|
| 125 |
document.getElementById('authrix-open-app').onclick = () =>
|
| 126 |
+
window.open('https://aarav13-authrix.hf.space', '_blank');
|
| 127 |
|
| 128 |
document.getElementById('authrix-reanalyze').onclick = () =>
|
| 129 |
chrome.runtime.sendMessage({ type: 'START_CAPTURE' });
|
|
|
|
| 249 |
}
|
| 250 |
if (errHint) {
|
| 251 |
errHint.textContent = isOffline
|
| 252 |
+
? 'Visit https://aarav13-authrix.hf.space to check server status'
|
| 253 |
: 'Make sure a video is playing before capturing.';
|
| 254 |
}
|
| 255 |
showState('error');
|
extension/popup.html
CHANGED
|
@@ -213,8 +213,8 @@
|
|
| 213 |
|
| 214 |
<!-- Offline warning -->
|
| 215 |
<div id="offline-warn">
|
| 216 |
-
Backend not
|
| 217 |
-
<code>
|
| 218 |
</div>
|
| 219 |
|
| 220 |
<!-- Main capture button -->
|
|
|
|
| 213 |
|
| 214 |
<!-- Offline warning -->
|
| 215 |
<div id="offline-warn">
|
| 216 |
+
Backend not reachable.
|
| 217 |
+
<code>Visit: aarav13-authrix.hf.space</code>
|
| 218 |
</div>
|
| 219 |
|
| 220 |
<!-- Main capture button -->
|
extension/popup.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
* Authrix Extension — Popup Script v3
|
| 3 |
*/
|
| 4 |
|
| 5 |
-
const API_BASE = '
|
| 6 |
|
| 7 |
document.addEventListener('DOMContentLoaded', async () => {
|
| 8 |
const online = await checkHealth();
|
|
|
|
| 2 |
* Authrix Extension — Popup Script v3
|
| 3 |
*/
|
| 4 |
|
| 5 |
+
const API_BASE = 'https://aarav13-authrix.hf.space';
|
| 6 |
|
| 7 |
document.addEventListener('DOMContentLoaded', async () => {
|
| 8 |
const online = await checkHealth();
|