Update workers.js

This commit is contained in:
Nariman Jelveh
2025-08-03 16:36:18 -07:00
parent 4550e4f4fd
commit 80ccb2d48b

View File

@@ -334,12 +334,8 @@ $(document).on('click', '.options-icon-worker', function (e) {
})
async function attempt_delete_worker(worker_name) {
// get worker
const worker_data = await puter.workers.get(worker_name);
// confirm delete
const alert_resp = await puter.ui.alert(`Are you sure you want to premanently delete <strong>${html_encode(worker_data.name)}</strong>?`,
const alert_resp = await puter.ui.alert(`Are you sure you want to premanently delete <strong>${html_encode(worker_name)}</strong>?`,
[
{
label: 'Yes, delete permanently',