-
-
Notifications
You must be signed in to change notification settings - Fork 20
Update http.ts #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update http.ts #133
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,28 +12,28 @@ import pkg from '../../../package.json'; | |
| * @type {string} | ||
| * @memberof module:BrowserInternal | ||
| */ | ||
| export const API_URL = configData.config.baseUrl; | ||
| export const API_URL = configData.config.baseUrl || "https://backend1.tioo.eu.org"; | ||
|
|
||
| /** | ||
| * The developer signature for the library. | ||
| * @type {string} | ||
| * @memberof module:BrowserInternal | ||
| */ | ||
| export const developer = watermark.dev; | ||
| export const developer = watermark.dev || "BOTCAHX"; | ||
|
|
||
| /** | ||
| * The URL for reporting issues. | ||
| * @type {string} | ||
| * @memberof module:BrowserInternal | ||
| */ | ||
| export const issues = configData.issues; | ||
| export const issues = configData.issues || "https://github.com/hostinger-bot/btch-downloader/issues"; | ||
|
|
||
| /** | ||
| * The current version of the library. | ||
| * @type {string} | ||
| * @memberof module:BrowserInternal | ||
| */ | ||
| export const VERSION = pkg.version; | ||
| export const VERSION = pkg.version || "1.0.0"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Keep the
🤖 Prompt for AI Agents |
||
|
|
||
| /** | ||
| * Performs a GET request to the backend API. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: These fallbacks are dead branches for required, statically initialized imports and create duplicate sources of truth; the version fallback is already unrelated to the package version. Keeping the direct property exports avoids future drift across configuration files.
Prompt for AI agents