Skip to content

Commit 1528ad1

Browse files
t3chguygithub-actions[bot]
authored andcommitted
Fix config.json failing to load for Jitsi wrapper in non-root deployment (#23577)
(cherry picked from commit a3ece52)
1 parent 6eed898 commit 1528ad1

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"@testing-library/react": "^12.1.5",
9393
"@types/flux": "^3.1.9",
9494
"@types/jest": "^29.0.0",
95+
"@types/jsrsasign": "^10.5.4",
9596
"@types/modernizr": "^3.5.3",
9697
"@types/node": "^14.18.28",
9798
"@types/react": "^17.0.49",

src/vector/jitsi/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const setupCompleted = (async () => {
6565
try {
6666
// Queue a config.json lookup asap, so we can use it later on. We want this to be concurrent with
6767
// other setup work and therefore do not block.
68-
const configPromise = getVectorConfig('..');
68+
const configPromise = getVectorConfig();
6969

7070
// The widget's options are encoded into the fragment to avoid leaking info to the server.
7171
const widgetQuery = new URLSearchParams(window.location.hash.substring(1));

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,6 +2062,11 @@
20622062
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
20632063
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
20642064

2065+
"@types/jsrsasign@^10.5.4":
2066+
version "10.5.4"
2067+
resolved "https://registry.yarnpkg.com/@types/jsrsasign/-/jsrsasign-10.5.4.tgz#e8a147c70e017198fd161600e24c938af7b5ae2f"
2068+
integrity sha512-05S2f4lGaWgCwFHsa3OEirc4VJf/sJRfhofzxUbuFbmm6NbffPXZrnJqquQAtS3g4C8Z0L9NHgW0znmtDxNoTQ==
2069+
20652070
"@types/minimatch@*":
20662071
version "3.0.5"
20672072
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
@@ -8172,6 +8177,7 @@ [email protected]:
81728177
dependencies:
81738178
"@babel/runtime" "^7.12.5"
81748179
another-json "^0.2.0"
8180+
browser-request "^0.3.3"
81758181
bs58 "^5.0.0"
81768182
content-type "^1.0.4"
81778183
loglevel "^1.7.1"
@@ -8202,6 +8208,7 @@ [email protected]:
82028208
"@types/ua-parser-js" "^0.7.36"
82038209
await-lock "^2.1.0"
82048210
blurhash "^1.1.3"
8211+
browser-request "^0.3.3"
82058212
cheerio "^1.0.0-rc.9"
82068213
classnames "^2.2.6"
82078214
commonmark "^0.29.3"

0 commit comments

Comments
 (0)