refactor: streamline website URL exports and clean up imports

- Moved website URL helper exports to a more appropriate location for better organization.
- Removed redundant imports in `version-checker.ts` to enhance clarity and maintainability.
- Improved overall code structure by consolidating related exports in the `index.ts` file.
This commit is contained in:
ropzislaw
2026-02-13 22:52:33 +08:00
parent 172ff0e5d7
commit 91d7c5f59e
2 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,12 @@
// Web authentication
// Website URL helpers
export {
buildWebsiteUrl,
isWebsiteDomain,
WEBSITE_HOST,
WEBSITE_ORIGIN,
} from "../config/website";
// Sound effects
export {
playSoundEffect,
@@ -50,10 +57,3 @@ export {
hasAuthCookies,
WEBSITE_URL,
} from "./web-auth";
// Website URL helpers
export {
buildWebsiteUrl,
isWebsiteDomain,
WEBSITE_HOST,
WEBSITE_ORIGIN,
} from "../config/website";

View File

@@ -3,7 +3,7 @@
* Checks the current extension version against the latest version from the server
*/
import { buildWebsiteUrl, WEBSITE_URL } from "../config/website";
import { buildWebsiteUrl } from "../config/website";
export interface VersionInfo {
version: string;