Skip to content

Commit

Permalink
Remove TODOs about try...catch
Browse files Browse the repository at this point in the history
  • Loading branch information
gazayas committed Jun 27, 2023
1 parent cd8e3c8 commit 30e05b3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/views/magic_test/_context_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
var target = "";
var options = "";
var accept = "You selected:\n\r" + text + "\n\rOk: Type `flush` into debugger console to add to test.\nCancel: To select new text."

// TODO: We should use try...catch here.
if (window.confirm(accept)) {
testingOutput.push({action: action, target: target, options: options});
sessionStorage.setItem("testingOutput", JSON.stringify(testingOutput));
Expand Down Expand Up @@ -60,8 +58,6 @@
var target = "";
var options = "";
var accept = "You selected:\n\r" + text + "\n\rOk: Type `flush` into debugger console to add to test.\nCancel: To select new text."

// TODO: We should use try...catch here.
if (window.confirm(accept)) {
testingOutput.push({action: action, target: target, options: options});
sessionStorage.setItem("testingOutput", JSON.stringify(testingOutput));
Expand Down

0 comments on commit 30e05b3

Please sign in to comment.