Closed unseen1980 closed 5 years ago
I guess _locationChanged
should use the param instead of accessing window.location
, similar to _offlineChanged(offline)
. No strong opinion though.
Yeah I think better to change _locationChanged
to use the param instead of accessing window.location
so it's more consistent with the other templates. e.g.
_locationChanged(location) {
const path = window.decodeURIComponent(location.pathname);
Done, please review again. Thanks
Since _locationChanged is not making use of
location
param probably it can be removed. What do you think?