Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes #4854

Merged
merged 5 commits into from
Sep 15, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move dashboard button generation to 'bodyReady' as to display it duri…
…ng 'go'
  • Loading branch information
larsjohnsen committed Sep 13, 2018
commit ef5a04d381128768592cc1a2b856a124aa18a268
2 changes: 1 addition & 1 deletion lib/modules/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.always = () => {
if (Modules.isEnabled(module)) {
if (module.options.menuItem.value) Menu.addMenuItem(`<div id="DashboardLink"><a href="/r/Dashboard">${i18n('myDashboard')}</a></div>`, undefined, true);
const subreddit = currentSubreddit();
if (module.options.dashboardShortcut.value && subreddit) Init.go.then(() => addDashboardShortcuts(subreddit));
if (module.options.dashboardShortcut.value && subreddit) Init.bodyReady.then(() => addDashboardShortcuts(subreddit));
}
};

Expand Down