Skip to content

Commit e0d56e5

Browse files
committed
Add fallback apiUrl
1 parent 5721fe2 commit e0d56e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const anytypeNetwork = "N83gJpVd9MuNRZAuJLZ7LiMntTThhPc6DtzWWVjb1M3PouVU"
99
export const errorConnectionMessage = "Can't connect to API. Please ensure Anytype is running and reachable.";
1010

1111
// URLs
12-
export const apiUrl = getPreferenceValues().apiUrl;
12+
export const apiUrl = getPreferenceValues().apiUrl || "http://127.0.0.1:31009";
1313
export const downloadUrl = "https://download.anytype.io/";
1414
export const anytypeSpaceDeeplink = (spaceId: string) => `anytype://main/object/_blank_/space.id/${spaceId}`;
1515

0 commit comments

Comments
 (0)