Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
set to string from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffryes committed Sep 22, 2017
1 parent a05d2d3 commit 5a6f8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class extends baseVw {
// all parameters not specified above are assumed to be filters
this.filters = _.omit(params, ['q', 'p', 'ps', 'sortBy', 'providerQ', 'network']);
// if the nsfw filter is not set, use the value from settings
this.filters.nsfw = this.filters.nsfw || app.settings.get('showNsfw');
this.filters.nsfw = this.filters.nsfw || String(app.settings.get('showNsfw'));

this.processTerm(this.term);
}
Expand Down

0 comments on commit 5a6f8b4

Please sign in to comment.