(str)
| 252 | } |
| 253 | |
| 254 | function removeDuplicateChars(str) { |
| 255 | const seen = new Set(); |
| 256 | let result = ""; |
| 257 | for (let char of str) { |
| 258 | if (!seen.has(char)) { |
| 259 | result += char; |
| 260 | seen.add(char); |
| 261 | } |
| 262 | } |
| 263 | return result; |
| 264 | } |
| 265 | |
| 266 | export async function saveOptions() { |
| 267 | const hasErrors = showValidationErrors(); |
no test coverage detected