summaryrefslogtreecommitdiff
path: root/ext/js/display/search-persistent-state-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-15 15:31:54 -0400
committerGitHub <noreply@github.com>2021-05-15 15:31:54 -0400
commitbc6fb4e7d742b40bb18965f5aa3e8a1a867b068e (patch)
treead63337ae6b9e9acb0000cabbc91235fc2f02ec4 /ext/js/display/search-persistent-state-controller.js
parent8442a8ba22525f45bcbb81e162962f2c97e5d9dc (diff)
Fix incorrect _updateClipboardMonitorEnabled invocation (#1677)
Diffstat (limited to 'ext/js/display/search-persistent-state-controller.js')
-rw-r--r--ext/js/display/search-persistent-state-controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/js/display/search-persistent-state-controller.js b/ext/js/display/search-persistent-state-controller.js
index 56beebc7..28546af8 100644
--- a/ext/js/display/search-persistent-state-controller.js
+++ b/ext/js/display/search-persistent-state-controller.js
@@ -15,8 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-class SearchPersistentStateController {
+class SearchPersistentStateController extends EventDispatcher {
constructor() {
+ super();
this._mode = null;
}
@@ -59,6 +60,6 @@ class SearchPersistentStateController {
}
this._mode = mode;
document.documentElement.dataset.searchMode = (mode !== null ? mode : '');
- this._updateClipboardMonitorEnabled();
+ this.trigger('modeChange', {mode});
}
}