(sourceId = '')
| 1684 | } |
| 1685 | |
| 1686 | function getLastOpenedFolder(sourceId = '') { |
| 1687 | const key = getLastOpenedFolderKey(sourceId); |
| 1688 | try { |
| 1689 | const val = String(localStorage.getItem(key) || '').trim(); |
| 1690 | return val; |
| 1691 | } catch (e) { |
| 1692 | return ''; |
| 1693 | } |
| 1694 | } |
| 1695 | |
| 1696 | function setLastOpenedFolder(folder, sourceId = '') { |
| 1697 | if (!folder) return; |
no test coverage detected