Open orslumen opened 13 years ago
If the document location is set to a similar URL, do not reload the page.
To fix this I added the following line of code, but I can imagine the URL comparison can be optimized (e.g. by removing blanks at the end of the url):
set href(url) { if (url === $url || url+'#' === $url || url === $url+'#') { return; } ... }
See https://github.com/orslumen/env-js/commit/a72ff2ea298fd3a06ac4ebdf29330f2ab68c0b4a
If the document location is set to a similar URL, do not reload the page.
To fix this I added the following line of code, but I can imagine the URL comparison can be optimized (e.g. by removing blanks at the end of the url):
See https://github.com/orslumen/env-js/commit/a72ff2ea298fd3a06ac4ebdf29330f2ab68c0b4a