Skip to content

Commit

Permalink
fix: toolbar condition for setting up widget
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a0fe4c)
(cherry picked from commit e42593e)
  • Loading branch information
GursheenK authored and mergify[bot] committed Apr 13, 2024
1 parent 7ea6b35 commit 9b6b7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/ui/toolbar/toolbar.js
Expand Up @@ -64,7 +64,7 @@ frappe.ui.toolbar.Toolbar = class {
}

setup_announcement_widget() {
if (frappe.boot.navbar_settings.announcement_widget) {
if (localStorage.getItem("show_announcement_widget")) {
let announcement_widget = $(".announcement-widget");
let close_message = announcement_widget.find(".close-message");
close_message.on(
Expand Down

0 comments on commit 9b6b7fd

Please sign in to comment.