viberadar 0.3.197 → 0.3.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/dashboard.html +3 -3
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -3637,13 +3637,13 @@ function probeToggleKebab(event, checkName, checkFile) {
|
|
|
3637
3637
|
const menu = document.createElement('div');
|
|
3638
3638
|
menu.className = 'probe-kebab-menu';
|
|
3639
3639
|
const fileItem = checkFile
|
|
3640
|
-
? `<div class="probe-kebab-item" onclick="probeKebabCopyPath(${JSON.stringify(checkFile)})">📋 Скопировать путь</div>
|
|
3640
|
+
? `<div class="probe-kebab-item" onclick="probeKebabCopyPath(${escapeHtml(JSON.stringify(checkFile))})">📋 Скопировать путь</div>
|
|
3641
3641
|
<div class="probe-kebab-sep"></div>`
|
|
3642
3642
|
: '';
|
|
3643
3643
|
menu.innerHTML = `
|
|
3644
|
-
<div class="probe-kebab-item" onclick="probeKebabRename(${JSON.stringify(checkName)})">✏️ Переименовать</div>
|
|
3644
|
+
<div class="probe-kebab-item" onclick="probeKebabRename(${escapeHtml(JSON.stringify(checkName))})">✏️ Переименовать</div>
|
|
3645
3645
|
${fileItem}
|
|
3646
|
-
<div class="probe-kebab-item danger" onclick="probeKebabDelete(${JSON.stringify(checkName)}, ${JSON.stringify(checkFile)})">🗑️ Удалить</div>`;
|
|
3646
|
+
<div class="probe-kebab-item danger" onclick="probeKebabDelete(${escapeHtml(JSON.stringify(checkName))}, ${escapeHtml(JSON.stringify(checkFile))})">🗑️ Удалить</div>`;
|
|
3647
3647
|
wrap.appendChild(menu);
|
|
3648
3648
|
const close = (e) => { if (!wrap.contains(e.target)) { menu.remove(); document.removeEventListener('click', close); } };
|
|
3649
3649
|
setTimeout(() => document.addEventListener('click', close), 0);
|