Skip to content

Commit 947c913

Browse files
authored
Merge pull request element-hq#17013 from vector-im/travis/voice/event_type
Register RecorderWorklet from react-sdk
2 parents 8692d6f + 69b4296 commit 947c913

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
@@ -59,7 +59,11 @@
5959
} %>
6060

6161
</head>
62-
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("indexeddb-worker.js")) %>">
62+
<body
63+
style="height: 100%; margin: 0;"
64+
data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("indexeddb-worker.js")) %>"
65+
data-vector-recorder-worklet-script="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("recorder-worklet.js")) %>"
66+
>
6367
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
6468
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
6569
<script src="<%= htmlWebpackPlugin.files.js.find(entry => entry.includes("bundle.js")) %>"></script>

webpack.config.js

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

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

0 commit comments

Comments
 (0)