Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed May 12, 2024
1 parent 61efee3 commit 8708b6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/assets/javascripts/controllers/detailedDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ angular.module('QuepidApp')

$scope.linkToDoc = function() {
let url = $scope.doc._url();

if (settingsSvc.applicableSettings().basicAuthCredential){
var credentials = settingsSvc.applicableSettings().basicAuthCredential;
url = url.replace('://', '://' + credentials + '@');
let credentials = settingsSvc.applicableSettings().basicAuthCredential;

if (credentials){
url = url.replace('://', `://${credentials}@`);
}

if (settingsSvc.applicableSettings().proxyRequests === true) {
Expand Down

0 comments on commit 8708b6e

Please sign in to comment.