about summary refs log tree commit diff
path: root/src/lib/strings/url-helpers.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-19 13:30:25 -0800
committerGitHub <noreply@github.com>2024-02-19 13:30:25 -0800
commit5573c38c4dcf05489ff64abcf0017f7b65f18fee (patch)
treebecd8f06f26ffe0e3d3d6d894da75aa040480118 /src/lib/strings/url-helpers.ts
parent943acd16aac187ed4eb5f9cea67d6c507aab1ab5 (diff)
downloadvoidsky-5573c38c4dcf05489ff64abcf0017f7b65f18fee.tar.zst
Update IS_PROD check (#2930)
* update is_prod check

* remove unused constants

* rename `IS_PROD` function to `IS_PROD_SERVICE`
Diffstat (limited to 'src/lib/strings/url-helpers.ts')
-rw-r--r--src/lib/strings/url-helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
index 8a71718c8..ef341154d 100644
--- a/src/lib/strings/url-helpers.ts
+++ b/src/lib/strings/url-helpers.ts
@@ -1,5 +1,5 @@
 import {AtUri} from '@atproto/api'
-import {PROD_SERVICE} from 'lib/constants'
+import {BSKY_SERVICE} from 'lib/constants'
 import TLDs from 'tlds'
 import psl from 'psl'
 
@@ -28,7 +28,7 @@ export function makeRecordUri(
 export function toNiceDomain(url: string): string {
   try {
     const urlp = new URL(url)
-    if (`https://${urlp.host}` === PROD_SERVICE) {
+    if (`https://${urlp.host}` === BSKY_SERVICE) {
       return 'Bluesky Social'
     }
     return urlp.host ? urlp.host : url