remove targetPopupId 'all'
Make unset targetPopupId mean the same thing instead
This commit is contained in:
parent
17934cce4b
commit
b616bac66e
@ -95,7 +95,7 @@ class Frontend extends TextScanner {
|
|||||||
|
|
||||||
onRuntimeMessage({action, params}, sender, callback) {
|
onRuntimeMessage({action, params}, sender, callback) {
|
||||||
const {targetPopupId} = params || {};
|
const {targetPopupId} = params || {};
|
||||||
if (targetPopupId !== 'all' && targetPopupId !== this.popup.id) { return; }
|
if (typeof targetPopupId !== 'undefined' && targetPopupId !== this.popup.id) { return; }
|
||||||
|
|
||||||
const handler = this._runtimeMessageHandlers.get(action);
|
const handler = this._runtimeMessageHandlers.get(action);
|
||||||
if (typeof handler !== 'function') { return false; }
|
if (typeof handler !== 'function') { return false; }
|
||||||
|
@ -851,7 +851,7 @@ class Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setPopupVisibleOverride(visible) {
|
setPopupVisibleOverride(visible) {
|
||||||
return apiForward('popupSetVisibleOverride', {visible, targetPopupId: 'all'});
|
return apiForward('popupSetVisibleOverride', {visible});
|
||||||
}
|
}
|
||||||
|
|
||||||
setSpinnerVisible(visible) {
|
setSpinnerVisible(visible) {
|
||||||
|
Loading…
Reference in New Issue
Block a user