Adding test to check custom menus

This commit is contained in:
David Négrier
2022-04-26 16:43:59 +02:00
parent ed1efe12f2
commit caf8a74ade
3 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
let menuIframeApi = undefined;
WA.ui.registerMenuCommand('custom callback menu', () => {
WA.nav.openTab("https://workadventu.re/");
WA.chat.sendChatMessage('Custom menu clicked', 'Mr Robot');
})
WA.ui.registerMenuCommand('custom iframe menu', {iframe: 'customIframeMenu.html'});