Public Lab

Remove try...catch from _addToolbar

Problem

We would like to remove an unnecessary try...catch block from our code.

Solution

Remove the try...catch around the toolbar adding logic from the #_addToolbar method found here:

https://github.com/publiclab/Leaflet.DistortableImage/blob/af4bea824707298cc47739b14c5f0d7f57228910/src/edit/DistortableImage.Edit.js#L536-L542

Additional Information

Please find further information on installation, solving, & getting help on the linked issue.

Thank You 😊

Task tags

  • javascript
  • beginner
  • leaflet.distortableimage

Students who completed this task

alexberti02

Task type

  • code Code

Level

Beginner
close

2019