aboutsummaryrefslogtreecommitdiff
path: root/src/window-utils.js
diff options
context:
space:
mode:
authoramy <[email protected]>2023-02-22 19:56:37 +0000
committeramy <[email protected]>2023-02-22 19:56:37 +0000
commit4d63e95b903cd44186f9a20fcb95c11074896bd9 (patch)
treeba2ac587cdb279805917278a696636e38b4bbf0e /src/window-utils.js
parentcf125cc28de2700fef426ecca557b965104d4076 (diff)
things
Diffstat (limited to 'src/window-utils.js')
-rw-r--r--src/window-utils.js16
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 = [];