diff options
Diffstat (limited to 'src/window-utils.js')
-rw-r--r-- | src/window-utils.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/window-utils.js b/src/window-utils.js index aad96fe..eaaf008 100644 --- a/src/window-utils.js +++ b/src/window-utils.js @@ -1,4 +1,20 @@ let util = { + context_menu(opt){ + /* + opt = {"menu":[ + {"name":string, + "callback": function} + + ],!"settings":{ + x:int, + y:int, + height:int, + width:int + }} + + ! is optional + */ + }, async alert(inp) { let promise = new Promise(async (res, rej) => { bu = []; |