(portEnd?: boolean)
| 290 | } |
| 291 | |
| 292 | export const getSQLBotAddr = (portEnd?: boolean) => { |
| 293 | const addr = location.origin + location.pathname |
| 294 | if (!portEnd || !addr.endsWith('/')) { |
| 295 | return addr |
| 296 | } |
| 297 | return addr.substring(0, addr.length - 1) |
| 298 | } |
| 299 | |
| 300 | export const formatArg = (text: string) => { |
| 301 | if (!text) { |