/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const Menu = require("resource://devtools/client/framework/menu.js"); const MenuItem = require("resource://devtools/client/framework/menu-item.js");
// Build the menu object from provided menu items. const menu = new Menu();
items.forEach(item => { if (item == "-") {
item = { type: "separator" };
}
const menuItem = new MenuItem(item); const subItems = item.submenu;
if (subItems) { const subMenu = new Menu();
subItems.forEach(subItem => {
subMenu.append(new MenuItem(subItem));
});
menuItem.submenu = subMenu;
}
menu.append(menuItem);
});
// Calculate position on the screen according to // the parent button if available. if (options.button) {
menu.popupAtTarget(options.button);
} else { const screenX = options.screenX; const screenY = options.screenY;
menu.popup(screenX, screenY, window.document);
}
}
module.exports = {
showMenu,
};
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.