Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 5fb5763

Browse files
author
Nitesh Kumar
committed
code corrections
1 parent 1d82fbe commit 5fb5763

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/extensions/default/OpenWithExternalApplication/GraphicsFile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,16 @@ define(function (require, exports, module) {
137137
}
138138

139139
if (filetype === "xd") {
140-
if (app.toLowerCase() !== "adobe xd" && app !== "adobe.cc.xd") {
140+
if (app.toLowerCase() !== "adobe xd" && app.toLowerCase() !== "adobe.cc.xd") {
141141
return;
142142
}
143+
143144
app = "Adobe XD";
144145
}
145146
fileTypeToAppMap[filetype] = app;
146147

147-
if (brackets.platform === "win" && !app.toLowerCase().endsWith('.exe')) {
148-
app = app.substring(app.lastIndexOf('//') + 2, app.length - 4);
148+
if (brackets.platform === "win" && app.toLowerCase().endsWith('.exe')) {
149+
app = app.substring(app.lastIndexOf('\\') + 1, app.length - 4);
149150
}
150151
if (AppToFileTypeMap[app]) {
151152
AppToFileTypeMap[app].push(filetype);

0 commit comments

Comments
 (0)