* Adds a new storage and refresh location
()
| 1650 | * Adds a new storage and refresh location |
| 1651 | */ |
| 1652 | function addStorage() { |
| 1653 | util |
| 1654 | .addPath() |
| 1655 | .then((res) => { |
| 1656 | storageList.push(res); |
| 1657 | localStorage.storageList = JSON.stringify(storageList); |
| 1658 | reload(); |
| 1659 | }) |
| 1660 | .catch((err) => { |
| 1661 | helpers.error(err); |
| 1662 | }); |
| 1663 | } |
| 1664 | }); |
| 1665 | } |
| 1666 |
no test coverage detected