diff --git a/client/cloudcmd.js b/client/cloudcmd.js index 49379e4d..d4bac384 100644 --- a/client/cloudcmd.js +++ b/client/cloudcmd.js @@ -67,4 +67,3 @@ async function register(config) { listenSW(sw, 'updatefound', onUpdateFound(config)); } - diff --git a/client/listeners/index.js b/client/listeners/index.js index c6a94c11..3e824a7b 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -116,6 +116,7 @@ module.exports.initKeysPanel = () => { const {target} = event; const {id} = target; + const operation = (name) => { const {Operation} = CloudCmd; diff --git a/client/modules/menu/cloudmenu.mjs b/client/modules/menu/cloudmenu.mjs index 9529b309..8e7d0722 100644 --- a/client/modules/menu/cloudmenu.mjs +++ b/client/modules/menu/cloudmenu.mjs @@ -23,4 +23,3 @@ async function loadMenu() { return supermenu; } - diff --git a/client/modules/menu/index.js b/client/modules/menu/index.js index 5cedd5ff..b060a6f1 100644 --- a/client/modules/menu/index.js +++ b/client/modules/menu/index.js @@ -46,6 +46,7 @@ module.exports.init = async () => { }); const {createCloudMenu} = await import('./cloudmenu.mjs'); + MenuContext = await createCloudMenu(fm, options, menuData); MenuContextFile = await createCloudMenu(fm, optionsFile, menuDataFile); @@ -205,8 +206,15 @@ function isPath(x, y) { function beforeShow(callback, params) { Key.unsetBind(); - const {name, position = {x: params.x, y: params.y}} = params; + const { + name, + position = { + x: params.x, + y: params.y, + }, + } = params; const {x, y} = position; + const el = DOM.getCurrentByPosition({ x, y, @@ -343,4 +351,3 @@ function listener(event) { event.preventDefault(); } } -