Disable right-click on user shared images
This commit is contained in:
parent
5e68c99514
commit
2a0f8b0cdf
|
@ -2746,6 +2746,9 @@ export default {
|
||||||
</a>
|
</a>
|
||||||
<div id="img-${collapseID}" style="display: none">${message}</div>`;
|
<div id="img-${collapseID}" style="display: none">${message}</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable right click. TODO: move to server side.
|
||||||
|
message = message.replace(/<img /g, `<img oncontextmenu="return false" `);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Were we at mentioned in this message?
|
// Were we at mentioned in this message?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user