Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix function shell.openPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
brrd committed May 24, 2022
1 parent d3ae18e commit 5648d4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/commands-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ var commands = {

editConfigFile: function (abrApp) {
var dirPath = constants.path.userConfig;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

openConfigDir: function (abrApp) {
var dirPath = constants.path.userData;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

about: function (abrApp) {
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/abr-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function AbrDocument () {
url = "http://" + url;
}
}
const openLink = shell.openPath || shell.openItem;
const openLink = shell.openPath;
openLink(url);
};

Expand Down
8 changes: 4 additions & 4 deletions app/renderer/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ var commands = {

editConfigFile: function(win, abrDoc, cm) {
var dirPath = constants.path.userConfig;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

/* Format */
Expand Down Expand Up @@ -331,17 +331,17 @@ var commands = {

openConfigDir: function(win, abrDoc, cm) {
var dirPath = constants.path.userData;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

openTempDir: function(win, abrDoc, cm) {
var dirPath = constants.path.tmp;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

openAppDir: function(win, abrDoc, cm) {
var dirPath = constants.path.app;
shell.openItem(dirPath);
shell.openPath(dirPath);
},

execCommand: function(win, abrDoc, cm) {
Expand Down

0 comments on commit 5648d4b

Please sign in to comment.