Skip to content

Commit 9effcbc

Browse files
Updating fix for FireFox (unable to press link), fixes #104
1 parent 75924ca commit 9effcbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.3.0",
8+
"version": "4.3.1",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/client/js/output/esc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ let esc = {
229229
return;
230230
output.setGraphicProperty(9, { class: cls });
231231
},
232-
"\x1b!URL={[^\\x20]*} ({[^\\)]+})": ([url, text]) => {
232+
"\x1b!URL={[^\\x20]*} ({[^\\)]+})": ([url = "", text = ""]) => {
233233
output.setGraphicProperty(9, {
234234
tag: "a",
235235
attrs: {
236236
href: url,
237-
target: "_blank"
237+
target: url.indexOf("javascript:") === 0 ? "" : "_blank"
238238
}
239239
});
240240
output.immediatePlainPrint(text);

0 commit comments

Comments
 (0)