kowalsky commited on
Commit
818f768
·
1 Parent(s): 1ac199c
Files changed (1) hide show
  1. templates/index.html +2 -2
templates/index.html CHANGED
@@ -59,7 +59,7 @@
59
  stopButton.disabled = false;
60
 
61
  try {
62
- const response = await fetch('/start_detection', {
63
  method: 'POST',
64
  });
65
 
@@ -94,7 +94,7 @@
94
  stopButton.disabled = true;
95
 
96
  try {
97
- const response = await fetch('/stop_detection', {
98
  method: 'POST',
99
  });
100
 
 
59
  stopButton.disabled = false;
60
 
61
  try {
62
+ const response = await fetch('${window.location.origin}/start_detection', {
63
  method: 'POST',
64
  });
65
 
 
94
  stopButton.disabled = true;
95
 
96
  try {
97
+ const response = await fetch('${window.location.origin}/stop_detection', {
98
  method: 'POST',
99
  });
100