(sitemapUrls = "/sitemap.txt")
| 7 | // This script will fetch your sitemap, find the closest matching link, and suggest that to the user. |
| 8 | class NotFoundApp { |
| 9 | constructor(sitemapUrls = "/sitemap.txt") { |
| 10 | this.load(sitemapUrls) |
| 11 | } |
| 12 | |
| 13 | async load(sitemapUrls) { |
| 14 | const getSuggestion = async () => { |