mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-06-02 07:30:04 +02:00
Allow search to load on server side render
This commit is contained in:
parent
8f9fe6e97d
commit
d2c0c289ab
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ class SearchController extends ViewController {
|
|||
}
|
||||
|
||||
get hasQuery() {
|
||||
return this.appState.query.hasOwnProperty('for') && this.appState.query.for.trim() !== '';
|
||||
return typeof window !== 'undefined'
|
||||
&& this.appState.query.hasOwnProperty('for') && this.appState.query.for.trim() !== '';
|
||||
}
|
||||
|
||||
get queryIsNew() {
|
||||
|
|
Loading…
Add table
Reference in a new issue