From 7eba360ab08d9ca3b75f5e54b4ab69fc73fb14f0 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 6 Sep 2024 11:57:00 +0200 Subject: [PATCH] Use the new constant `WSC_RPC_API_URL`. See https://github.com/WoltLab/WCF/pull/5989 --- docs/javascript/components_rpc_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript/components_rpc_api.md b/docs/javascript/components_rpc_api.md index be18b971..de7a0a6a 100644 --- a/docs/javascript/components_rpc_api.md +++ b/docs/javascript/components_rpc_api.md @@ -29,7 +29,7 @@ export async function renderComment( objectTypeId: number | undefined = undefined ): Promise> { 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) { -- 2.20.1