Skip to content

Commit 9c3627d

Browse files
committed
Register RecorderWorklet from react-sdk
1 parent 36f8a37 commit 9c3627d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/vector/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
<% }
5151
} %>
5252
</head>
53-
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
53+
<body
54+
style="height: 100%; margin: 0;"
55+
data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>"
56+
data-vector-recorder-worklet-script="<%= htmlWebpackPlugin.files.chunks['recorder-worklet'].entry %>"
57+
>
5458
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
5559
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
5660
<script src="<%= htmlWebpackPlugin.files.chunks['bundle'].entry %>"></script>

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module.exports = (env, argv) => {
5252
"mobileguide": "./src/vector/mobile_guide/index.js",
5353
"jitsi": "./src/vector/jitsi/index.ts",
5454
"usercontent": "./node_modules/matrix-react-sdk/src/usercontent/index.js",
55+
"recorder-worklet": "./node_modules/matrix-react-sdk/src/voice/RecorderWorklet.ts",
5556

5657
// CSS themes
5758
"theme-legacy": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss",

0 commit comments

Comments
 (0)