Skip to content

Commit

Permalink
Fix conflict with hideMobile (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot authored Aug 10, 2022
1 parent dea20a2 commit f4cb421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/discourse/widgets/tag-header-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default createWidget("tag-header-widget", {
const router = getOwner(this).lookup("router:main");
const route = router.currentRoute;
const hideMobile =
!settings.show_on_mobile && this.site.mobileView ? "true" : hideMobile;
!settings.show_on_mobile && this.site.mobileView ? true : false;

if (route && route.params && route.params.hasOwnProperty("tag_id")) {
let tag = route.params.tag_id;
Expand Down

0 comments on commit f4cb421

Please sign in to comment.