Skip to content

Commit

Permalink
does the last suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
andOrlando committed Dec 13, 2020
1 parent b7e1e73 commit a0cb9aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/js/extraFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,9 @@ function initialize_resize_hamburger() {
}

const switch_hamburger = function() {
// If hamburger is hidden
const is_hidden = $('#hamburger_button').hasClass("hide")

// Hides or unhides the hamburger
if (is_hidden) {
if ($('#hamburger_button').hasClass("hide")) {
$('#hamburger_button').removeClass("hide")
} else {
$('#hamburger_button').addClass("hide")
Expand Down

0 comments on commit a0cb9aa

Please sign in to comment.