From a1a88ae7418274bc4f014356ef239a49454da56e Mon Sep 17 00:00:00 2001 From: timonson Date: Wed, 9 Aug 2023 02:07:06 +0200 Subject: [PATCH] Fix --- shadow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadow.js b/shadow.js index b6686ab..8f04d87 100644 --- a/shadow.js +++ b/shadow.js @@ -285,8 +285,8 @@ export class Shadow extends HTMLElement { async _makeRpcCallAndRender(method, property) { const urlOrPath = this.getAttribute("rpc-url"); if (isString(urlOrPath)) { + const [url, jwt] = this._getUrlAndJwt(urlOrPath); try { - const [url, jwt] = this._getUrlAndJwt(urlOrPath); const result = await makeRpcCall(url)( { method, params: /**@type {any}*/ (this)[property] }, isNull(jwt) ? undefined : { jwt },