remove targetPopupId 'all'

Make unset targetPopupId mean the same thing instead
This commit is contained in:
siikamiika 2020-03-15 18:19:00 +02:00
parent 17934cce4b
commit b616bac66e
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class Frontend extends TextScanner {
onRuntimeMessage({action, params}, sender, callback) {
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);
if (typeof handler !== 'function') { return false; }

View File

@ -851,7 +851,7 @@ class Display {
}
setPopupVisibleOverride(visible) {
return apiForward('popupSetVisibleOverride', {visible, targetPopupId: 'all'});
return apiForward('popupSetVisibleOverride', {visible});
}
setSpinnerVisible(visible) {