Skip to content

Commit

Permalink
fix: onInternalMessage: don't fail on non-Odoo pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Dec 11, 2024
1 parent a0638ed commit 4cd53a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

```
FIX: file2base64: Support large files
FIX: onInternalMessage: Don't fail on non-Odoo pages (#141)
```

**11.7.1**
Expand Down
2 changes: 1 addition & 1 deletion src/js/private/background.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function updateBrowserAction(icon: string, text: string | null, bg_color: string
function onInternalMessage(request: Object, sender: Object) {
if (request.message === 'update_terminal_badge_info') {
const {context} = request;
const ver_clean = sanitizeOdooVersion(context.serverVersion.raw);
const ver_clean = sanitizeOdooVersion(context?.serverVersion?.raw) || "";
if (context.isCompatible) {
ubrowser.action.enable(sender.tab.id);
let color;
Expand Down

0 comments on commit 4cd53a0

Please sign in to comment.