Attaching this into Glowforge window.store as a listener and running code inline to that handler means any uncaught error here will trigger Glowforge logger and uncaught error policy which prevents users from using the site in an unknown state.
Adding a try catch around this code (ideally the entire listener block) will prevent issues from bubbling out of the plugin and into our application.
https://github.com/icirellik/glowforge-material-manager/blob/68118896a25a2208162ed634f2b362e88a2fe1ee/public/content.js#L229
Attaching this into Glowforge window.store as a listener and running code inline to that handler means any uncaught error here will trigger Glowforge logger and uncaught error policy which prevents users from using the site in an unknown state.
Adding a try catch around this code (ideally the entire listener block) will prevent issues from bubbling out of the plugin and into our application.