From: Cyperghost Date: Fri, 6 Sep 2024 09:57:00 +0000 (+0200) Subject: Use the new constant `WSC_RPC_API_URL`. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7eba360ab08d9ca3b75f5e54b4ab69fc73fb14f0;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Use the new constant `WSC_RPC_API_URL`. See https://github.com/WoltLab/WCF/pull/5989 --- 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) {