Disable right-click on user shared images

This commit is contained in:
Noah 2024-02-28 22:20:08 -08:00
parent 5e68c99514
commit 2a0f8b0cdf

View File

@ -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?