(url: string)
| 108 | const ignoreAnchor = options?.ignoreAnchor ?? true; |
| 109 | |
| 110 | const normalizeUrl = (url: string) => { |
| 111 | let normalized = url; |
| 112 | if (ignoreQuery) { |
| 113 | normalized = normalized.split('?')[0]; |
| 114 | } |
| 115 | if (ignoreAnchor) { |
| 116 | normalized = normalized.split('#')[0]; |
| 117 | } |
| 118 | return normalized; |
| 119 | }; |
| 120 | |
| 121 | clearInterval(ctx.getInterval(_intervalKey)); |
| 122 | let currentUrl = normalizeUrl(window.location.href); |