(str)
| 29 | import Utils from './Utils'; |
| 30 | |
| 31 | function removeTrailingSlash(str) { |
| 32 | if (!str) { |
| 33 | return str; |
| 34 | } |
| 35 | if (str.endsWith('/')) { |
| 36 | str = str.substring(0, str.length - 1); |
| 37 | } |
| 38 | return str; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Config keys that need to be loaded asynchronously. |