You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -337,7 +337,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
_addCodeCopyButton() {
|
_addCodeCopyButton() {
|
||||||
// Add 'copy' buttons to pre blocks
|
// Add 'copy' buttons to pre blocks
|
||||||
ReactDOM.findDOMNode(this).querySelectorAll('.mx_EventTile_body pre').forEach((p) => {
|
Array.from(ReactDOM.findDOMNode(this).querySelectorAll('.mx_EventTile_body pre')).forEach((p) => {
|
||||||
const button = document.createElement("span");
|
const button = document.createElement("span");
|
||||||
button.className = "mx_EventTile_copyButton";
|
button.className = "mx_EventTile_copyButton";
|
||||||
button.onclick = (e) => {
|
button.onclick = (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user