Fix search popup mode (#687)
* Fix missing mode on search popup * Remove mode update
This commit is contained in:
parent
4a43b41f79
commit
2ed2b22d49
@ -932,7 +932,7 @@ class Backend {
|
|||||||
const popupWindow = await new Promise((resolve, reject) => {
|
const popupWindow = await new Promise((resolve, reject) => {
|
||||||
chrome.windows.create(
|
chrome.windows.create(
|
||||||
{
|
{
|
||||||
url: baseUrl,
|
url: `${baseUrl}?mode=popup`,
|
||||||
width: popupWidth,
|
width: popupWidth,
|
||||||
height: popupHeight,
|
height: popupHeight,
|
||||||
type: 'popup'
|
type: 'popup'
|
||||||
|
@ -213,8 +213,7 @@ class DisplaySearch extends Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onPopState() {
|
_onPopState() {
|
||||||
const {queryParams: {query='', mode=''}} = parseUrl(window.location.href);
|
const {queryParams: {query=''}} = parseUrl(window.location.href);
|
||||||
document.documentElement.dataset.searchMode = mode;
|
|
||||||
this._setQuery(query);
|
this._setQuery(query);
|
||||||
this._onSearchQueryUpdated(this._query.value, false);
|
this._onSearchQueryUpdated(this._query.value, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user