Skip to content

Commit

Permalink
Use the new constant WSC_RPC_API_URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyperghost committed Sep 6, 2024
1 parent 71b73a9 commit 7eba360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/javascript/components_rpc_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function renderComment(
objectTypeId: number | undefined = undefined
): Promise<ApiResult<Response>> {
const url = new URL(
`${window.WSC_API_URL}index.php?api/rpc/core/comments/${commentId}/render`
`${window.WSC_RPC_API_URL}core/comments/${commentId}/render`
);
url.searchParams.set("messageOnly", messageOnly.toString());
if (responseId !== undefined) {
Expand Down

0 comments on commit 7eba360

Please sign in to comment.