mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 12:22:28 +00:00
chore(agents): run const-refactor-agent daily task — Refactored timeouts in UI controllers and webtorrent.js to use canonical constants
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
fadd74b0af
commit
a77e182ed1
7 files changed
+35
-72
No files matched your search
@@ -22,7 +22,7 @@ import r2Service from "../services/r2Service.js";
|
||||
import s3UploadService from "../services/s3UploadService.js";
|
||||
import RelayHealthService from "../services/relayHealthService.js";
|
||||
import { createFeedEngine } from "../feedEngine/index.js";
|
||||
import { URL_FIRST_ENABLED } from "../constants.js";
|
||||
import { URL_FIRST_ENABLED, SHORT_TIMEOUT_MS } from "../constants.js";
|
||||
import { ALLOW_NSFW_CONTENT } from "../config.js";
|
||||
import { relayManager } from "../relayManager.js";
|
||||
import { userBlocks } from "../userBlocks.js";
|
||||
@@ -899,7 +899,7 @@ export default class ApplicationBootstrap {
|
||||
if (this.window && typeof this.window.setTimeout === "function") {
|
||||
this.window.setTimeout(() => {
|
||||
app.showStatus("");
|
||||
}, 5000);
|
||||
}, SHORT_TIMEOUT_MS);
|
||||
}
|
||||
} else {
|
||||
app.showError(message);
|
||||
|
||||
Reference in new issue
Block a user