Skip to content

Commit 58332bc

Browse files
committed
fix: new mods dialog buttons not working
1 parent 5d22e4e commit 58332bc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/dist/src/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,11 @@ function showNewModsDialog(newMods, deletedMods) {
327327
}
328328
html += '<p style="margin-top: 12px; font-weight: 600;">What would you like to do?</p>';
329329

330+
var json = JSON.stringify(newMods).replace(/"/g, "&quot;");
330331
showModal("New Mods Detected", html,
331332
'<button class="btn" onclick="closeModal()">Cancel</button>' +
332-
'<button class="btn btn-primary" onclick="saveNewModsForLater(' + JSON.stringify(newMods) + ')">Save for Later & Snapshot</button>' +
333-
'<button class="btn" style="background: var(--success); border-color: var(--success);" onclick="startDebugWithNewMods(' + JSON.stringify(newMods) + ')">Start Debug & Snapshot</button>'
333+
'<button class="btn btn-primary" onclick="saveNewModsForLater(' + json + ')">Save for Later & Snapshot</button>' +
334+
'<button class="btn" style="background: var(--success); border-color: var(--success);" onclick="startDebugWithNewMods(' + json + ')">Start Debug & Snapshot</button>'
334335
);
335336
}
336337

0 commit comments

Comments
 (0)