Skip to content

Commit

Permalink
Changed variable name yourRepoURL to gitLinkRepoURL.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts authored May 30, 2021
1 parent bdbf779 commit 032ea0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<div id="app"></div>
<script>
// Enter the URL of your own GitHub Repository in between the two quotes below
var yourRepoURL = '';
var gitLinkRepoURL = '';

function getParameterByName(name, url = window.location.href) {
name = name.replace(/[\[\]]/g, '\\$&');
Expand Down Expand Up @@ -126,14 +126,14 @@
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/blob/master')
} else {
url = yourRepoURL +'/blob/main/docs/' + vm.route.file
url = gitLinkRepoURL +'/blob/main/docs/' + vm.route.file
}
var editHtml = '[:memo: Edit this Page](' + url + ')\n'

// Adjust GitHub displayable image URL format to also work in Docsify
html = html.replace(new RegExp("../assets/images", 'ig'), "assets/images");

if ((!(getParameterByName('hidegitlink') === 'true')) && (!!yourRepoURL)) {
if ((!(getParameterByName('hidegitlink') === 'true')) && (!!gitLinkRepoURL)) {
return html + '<br />' + '\n' + '<hr>' + '\n\n' + editHtml
} else {
return html
Expand Down

0 comments on commit 032ea0a

Please sign in to comment.