Skip to content

Commit b171c72

Browse files
authored
Add extra parenthesis to ensure logical outcome
1 parent 815c42e commit b171c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_javascripts/page-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function versionSelector(list) {
2626
baseUrl = "https://docs.openshift.com/enterprise/";
2727
}
2828

29-
if (dk === "openshift-enterprise" || dk === "openshift-origin" && currentVersion.charAt(0) !== newVersion.charAt(0)){
29+
if ((dk === "openshift-enterprise" || dk === "openshift-origin") && currentVersion.charAt(0) !== newVersion.charAt(0)){
3030
fileRequested = "/welcome/index.html";
3131
} else {
3232
const versionIndex = window.location.pathname.lastIndexOf(currentVersion) + currentVersion.length;

0 commit comments

Comments
 (0)