mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
[constants] refactor 5000 to SHORT_TIMEOUT_MS
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
3716ef4a4a
commit
8762220cac
8 files changed
+78
-3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { devLogger, userLogger } from "../utils/logger.js";
|
||||
import { SHORT_TIMEOUT_MS } from "../constants.js";
|
||||
|
||||
export default class VideoModalController {
|
||||
constructor({
|
||||
@@ -180,7 +181,7 @@ export default class VideoModalController {
|
||||
if (this.showStatus) {
|
||||
this.showStatus(
|
||||
"Warning: No peers detected. Playback may fail or stall.",
|
||||
{ autoHideMs: 5000 },
|
||||
{ autoHideMs: SHORT_TIMEOUT_MS },
|
||||
);
|
||||
}
|
||||
// Proceed anyway
|
||||
|
||||
Reference in new issue
Block a user