scrypted-detection-trainer 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scrypted-detection-trainer",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Collect and label detections to fine-tune the Scrypted NVR object detection model.",
5
5
  "keywords": [
6
6
  "scrypted-plugin"
package/src/main.ts CHANGED
@@ -502,7 +502,7 @@ class DetectionTrainer extends ScryptedDeviceBase implements Settings, HttpReque
502
502
  <div class="toast" id="toast"></div>
503
503
 
504
504
  <script>
505
- const BASE = location.pathname.replace(/\/$/, '');
505
+ const BASE = location.pathname.replace(/\/+$/, '');
506
506
  let pending = [];
507
507
  let labeledCount = 0;
508
508