mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-20 12:30:02 +08:00
Operation name Bug fix
This commit is contained in:
parent
6f9757d4dc
commit
8c418d10f3
@ -107,13 +107,13 @@ async function beginInvoke(msg) {
|
||||
flowchart_window.loadURL(url);
|
||||
}
|
||||
mainWindow.hide();
|
||||
const window = windowManager.getActiveWindow();
|
||||
// Prints the currently focused window bounds.
|
||||
console.log(window);
|
||||
// This method has to be called on macOS before changing the window's bounds, otherwise it will throw an error.
|
||||
// It will prompt an accessibility permission request dialog, if needed.
|
||||
if(!process.platform == "linux" && !process.platform == "darwin"){
|
||||
if(process.platform != "linux" && process.platform != "darwin"){
|
||||
const {windowManager} = require("node-window-manager");
|
||||
const window = windowManager.getActiveWindow();
|
||||
console.log(window);
|
||||
windowManager.requestAccessibility();
|
||||
// Sets the active window's bounds.
|
||||
let size = screen.getPrimaryDisplay().workAreaSize
|
||||
|
@ -271,7 +271,7 @@ function addElement(op, para) {
|
||||
if (option == 1) { //打开网页选项
|
||||
title = "Open Page";
|
||||
} else {
|
||||
title = $(".options")[option - 2].innerHTML; //获取新增操作名称
|
||||
title = $(".options")[option - 1].innerHTML; //获取新增操作名称
|
||||
}
|
||||
|
||||
toolBoxKernel(null, para);
|
||||
|
@ -271,7 +271,7 @@ function addElement(op, para) {
|
||||
if (option == 1) { //打开网页选项
|
||||
title = "打开网页";
|
||||
} else {
|
||||
title = $(".options")[option - 2].innerHTML; //获取新增操作名称
|
||||
title = $(".options")[option - 1].innerHTML; //获取新增操作名称
|
||||
}
|
||||
|
||||
toolBoxKernel(null, para);
|
||||
|
Loading…
x
Reference in New Issue
Block a user