var menuButton = document.getElementById('menu-button')

menuButton.addEventListener('click', function (e) {
  showSecondaryMenu()
})

function showSecondaryMenu () {
  var navbar = document.getElementById('navbar')
  var rect = menuButton.getBoundingClientRect()
  var navbarRect = navbar.getBoundingClientRect()

  ipc.send('showSecondaryMenu', {
    x: Math.round(rect.left),
    y: Math.round(navbarRect.bottom),
    async: true
  })
}

@@ -128,25 +128,23 @@
 u()%0A%7D)%0A%0A
-function 
+window.
 showSeco
@@ -153,16 +153,27 @@
 aryMenu 
+= function 
 () %7B%0A  v

make showSecondaryMenu global