1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:52:27 +01:00

use liberator.config.guioptions to determine the ID of the toolbar for :emenu

This commit is contained in:
Doug Kearns
2008-08-14 05:15:50 +00:00
parent b145689c14
commit 00f8ed632e

View File

@@ -155,7 +155,7 @@ const liberator = (function () //{{{
// TODO: move this // TODO: move this
function getMenuItems() function getMenuItems()
{ {
var menubar = document.getElementById("main-menubar"); var menubar = document.getElementById(liberator.config.guioptions["m"]);
var items = []; var items = [];
for (var i = 0; i < menubar.childNodes.length; i++) for (var i = 0; i < menubar.childNodes.length; i++)