Skip to content

Commit

Permalink
Merge pull request #164 from FocusProgram/master
Browse files Browse the repository at this point in the history
feat: ✨ Support nginx secondary directory proxy
  • Loading branch information
vvbbnn00 authored Mar 28, 2024
2 parents f957a73 + 684ac9b commit 1f780e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ <h2>账户信息</h2>
const randomName = document.getElementById('randomName').checked;
const proxyFormat = document.getElementById('proxyFormat').value;
const ipv6 = document.getElementById('ipv6').checked;
const baseUrl = location.protocol + '//' + location.host + '/';
// Get the directory part of location.pathname
const basePath = location.pathname.substring(0, location.pathname.lastIndexOf('/') + 1);
// Construct the baseUrl
const baseUrl = location.origin + basePath;
const queryParams = new URLSearchParams({
best,
randomName,
Expand Down

0 comments on commit 1f780e8

Please sign in to comment.