Move alert() to a Thread.invokeLater, as it is not in the main thread

This commit is contained in:
Adam Goldsmith 2021-10-10 10:17:09 -04:00
parent 82345b92bb
commit 2e68593b30

View File

@ -100,7 +100,7 @@ function TTSDeckPage(busy_props, page_num, page_cards, copies_list) {
deck_graphics.drawImage(card_image, col * card_image.width, row * card_image.height, null); deck_graphics.drawImage(card_image, col * card_image.width, row * card_image.height, null);
} catch (ex) { } catch (ex) {
alert('Error while processing ' + card + ': ' + ex, true); Thread.invokeLater(() => alert('Error while processing ' + card + ': ' + ex, true));
} }
} }
println("End of Row ", row); println("End of Row ", row);