Skip to content

Commit 2af43b5

Browse files
authored
Merge pull request #416 from raymond-rebbeck/main
Fix JavaScript errors in Studio
2 parents 617918f + a48b107 commit 2af43b5

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.4.1] - Unreleased
9+
10+
### Fixed
11+
- Fixed JS errors in Studio on certain operations (#416)
812

913
## [2.4.0] - 2024-07-08
1014

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ webui.showWarning = function(message) {
9393
// convert links in message into actual html links
9494
var messageAsArr = message.split(" ");
9595
messageAsArr = messageAsArr.map(function(messagePart){
96-
if (messagePart.startsWith("https://")) {
96+
if (messagePart.substring(0,8) === "https://") {
9797
return '<a href="' + messagePart + '" target="_blank">' + messagePart + '</a>';
9898
} else {
9999
return messagePart;

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ webui.showWarning = function(message) {
9393
// convert links in message into actual html links
9494
var messageAsArr = message.split(" ");
9595
messageAsArr = messageAsArr.map(function(messagePart){
96-
if (messagePart.startsWith("https://")) {
96+
if (messagePart.substring(0,8) === "https://") {
9797
return '<a href="' + messagePart + '" target="_blank">' + messagePart + '</a>';
9898
} else {
9999
return messagePart;

module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Document name="git-source-control.ZPM">
44
<Module>
55
<Name>git-source-control</Name>
6-
<Version>2.4.0</Version>
6+
<Version>2.4.1</Version>
77
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
88
<Keywords>git source control studio vscode</Keywords>
99
<Packaging>module</Packaging>

0 commit comments

Comments
 (0)