Skip to content

Commit

Permalink
fix: image cannot be clicked to enlarge
Browse files Browse the repository at this point in the history
This is a temporary change, I will finish the task of #16 in the future
  • Loading branch information
wibus-wee committed Jul 5, 2023
1 parent 772f93b commit a12ac31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/functions/better-image-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export function betterImageDisplay(messageUserList: IMessageUserList) {
${timestamp.split(":").slice(0, 2).join(":")}
</div>
`;
// Thanks to @dmlgzs for this fix: https://github.com/wibus-wee/icalingua-theme-telegram/issues/21#issuecomment-1621200630
newMessageImageContainer.onclick = () => {
require('electron').ipcRenderer.send('openImage', messageImageSrc);
};
(
messageElement.querySelector(
".vac-message-container .vac-message-card"
Expand Down

0 comments on commit a12ac31

Please sign in to comment.