diff options
| author | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-15 18:19:00 +0200 | 
|---|---|---|
| committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-03-21 22:13:07 +0200 | 
| commit | b616bac66ed0735c1e7ebbaf1ceba20b081f1a6f (patch) | |
| tree | 9060deb6f870e472c601b6cec050a2f60f62abca /ext | |
| parent | 17934cce4bd7c0775ab51b69d81db585b2de14e8 (diff) | |
remove targetPopupId 'all'
Make unset targetPopupId mean the same thing instead
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/fg/js/frontend.js | 2 | ||||
| -rw-r--r-- | ext/mixed/js/display.js | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index d7bc02cc..d6c5eac6 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -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; } diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 9a7a91f3..6898a6eb 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -851,7 +851,7 @@ class Display {      }      setPopupVisibleOverride(visible) { -        return apiForward('popupSetVisibleOverride', {visible, targetPopupId: 'all'}); +        return apiForward('popupSetVisibleOverride', {visible});      }      setSpinnerVisible(visible) { |