Skip to content

Commit

Permalink
Fixed #19
Browse files Browse the repository at this point in the history
Fixed a bug in background.js, where a wrong value was being sent to beginResize, causing the notification to be hidden for inline images.
  • Loading branch information
memeller committed Feb 6, 2024
1 parent cbf3c3d commit a4d0b06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## v5.7.1
- Fixed - Notification not displayed when inserting an inline image (#19)

## v5.7

- Added auto resize option for new messages. When enabled, each time an attachment is added / pasted inline, the extension checks if it meets the size restrictions set in the options. If so, the image is automatically resized and saved. (#12)
Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ browser.runtime.onMessage.addListener(async (message, sender, callback) => {
// Image added to body of message. Return a promise to the sender.
if (message.type == "resizeFile") {
//resizeFile is sent by content script when inline image is inserted. We need to tell the function that this is inline and that the action should trigger auto resize
return beginResize(sender.tab, message.file,false,true,true);
return beginResize(sender.tab, message.file,true,true,true);
}
// Options window requesting a file.
if (message.type == "fetchFile") {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "5.7",
"version": "5.7.1",
"applications": {
"gecko": {
"id": "[email protected]",
Expand Down

0 comments on commit a4d0b06

Please sign in to comment.