Skip to content

Commit

Permalink
make some things prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pfaffman committed Dec 14, 2023
1 parent e3bd122 commit 6455336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/common.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Hide homepage user setting to avoid confusion
.user-preferences .control-group.home {
display: none;
display: none;
}
8 changes: 4 additions & 4 deletions javascripts/discourse/initializers/custom-homepage-set.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ export default {
const { setDefaultHomepage } = require("discourse/lib/utilities");

if (settings.custom_default_homepage) {

Check failure on line 13 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
const url = settings.custom_default_homepage.replace(/^\/+/g, '');
const url = settings.custom_default_homepage.replace(/^\/+/g, "");

Check failure on line 14 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
setDefaultHomepage(url);
PreloadStore.remove("topic_list");
}

if (!user && settings.anon_page) {

Check failure on line 19 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
const url = settings.anon_page.replace(/^\/+/g, '');
const url = settings.anon_page.replace(/^\/+/g, "");

Check failure on line 20 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
setDefaultHomepage(url);
PreloadStore.remove("topic_list");
}

if (mobile.isMobileDevice && settings.mobile_homepage) {

Check failure on line 25 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
const url = settings.mobile_homepage.replace(/^\/+/g, '');
const url = settings.mobile_homepage.replace(/^\/+/g, "");

Check failure on line 26 in javascripts/discourse/initializers/custom-homepage-set.js.es6

View workflow job for this annotation

GitHub Actions / ci / linting

'settings' is not defined
setDefaultHomepage(url);
PreloadStore.remove("topic_list");
}
Expand All @@ -35,7 +35,7 @@ export default {
RegExp(user.primary_group_name).test(value)
);
if (mapEntry) {
const url = mapEntry.split(":")[1].replace(/^\/+/g, '');
const url = mapEntry.split(":")[1].replace(/^\/+/g, "");
window.console.log("setting url", url);
setDefaultHomepage(url);
PreloadStore.remove("topic_list");
Expand Down

0 comments on commit 6455336

Please sign in to comment.