From 2ed2b22d49b60b814ab578ccdb6d86897be9a3e4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 25 Jul 2020 13:23:51 -0400 Subject: Fix search popup mode (#687) * Fix missing mode on search popup * Remove mode update --- ext/bg/js/backend.js | 2 +- ext/bg/js/search.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 74680099..19d285ef 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -932,7 +932,7 @@ class Backend { const popupWindow = await new Promise((resolve, reject) => { chrome.windows.create( { - url: baseUrl, + url: `${baseUrl}?mode=popup`, width: popupWidth, height: popupHeight, type: 'popup' diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 93f45468..c29abbaa 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -213,8 +213,7 @@ class DisplaySearch extends Display { } _onPopState() { - const {queryParams: {query='', mode=''}} = parseUrl(window.location.href); - document.documentElement.dataset.searchMode = mode; + const {queryParams: {query=''}} = parseUrl(window.location.href); this._setQuery(query); this._onSearchQueryUpdated(this._query.value, false); } -- cgit v1.2.3