Fix: Use safe template variables for JS package_name/module_name

This commit is contained in:
2026-01-06 20:03:10 +09:00
parent e6c1b07b99
commit 9499ef005f
2 changed files with 3 additions and 3 deletions

View File

@@ -408,7 +408,7 @@
function refreshList(silent) {
$.ajax({
url: `/${PACKAGE_NAME}/ajax/${MODULE_NAME}/list`,
url: `/${{ arg['package_name'] }}/ajax/${{ arg['module_name'] }}/list`,
type: 'POST',
dataType: 'json',
data: {},
@@ -566,7 +566,7 @@
// Socket Init
try {
if (typeof io !== 'undefined') {
const socket = io.connect(`/${PACKAGE_NAME}/queue`);
const socket = io.connect(`/${{ arg['package_name'] }}/queue`);
socket.on('download_status', function(data) {
updateDownloadCard(data);
});