Skip to content

Commit

Permalink
jsdialog: reduce warnings in console for sidebar
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: Ibe3c82bde06eb96fe08ea977472c776be4132de1
  • Loading branch information
eszkadev committed Oct 16, 2023
1 parent 88b5f50 commit 5f9b8ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion browser/src/control/Control.Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ L.Control.Sidebar = L.Control.extend({
if (!this.builder)
return;

// reduce unwanted warnings in console
if (data.control.id === 'addonimage') {
window.app.console.log('Ignored update for control: ' + data.control.id);
return;
}

this.builder.updateWidget(this.container, data.control);
},

Expand All @@ -84,7 +90,8 @@ L.Control.Sidebar = L.Control.extend({
// if panel has to be shown or hidden, full update will appear
if (controlId === 'contents' ||
controlId === 'Panel' ||
controlId === 'titlebar') {
controlId === 'titlebar' ||
controlId === 'addonimage') {
window.app.console.log('Ignored action: ' + innerData.action_type + ' for control: ' + controlId);
return;
}
Expand Down

0 comments on commit 5f9b8ca

Please sign in to comment.