Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -16,10 +16,12 @@ export default function navigate(path, query, options = {}) {
|
||||
|
||||
if (options.redirect) {
|
||||
window.location.href = url;
|
||||
} else if (options.replace) {
|
||||
history.replaceState({}, '', url); // eslint-disable-line no-restricted-globals
|
||||
} else {
|
||||
history.pushState({}, '', url); // eslint-disable-line no-restricted-globals
|
||||
}
|
||||
else if (options.replace) {
|
||||
history.replaceState({}, '', url);
|
||||
}
|
||||
else {
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
events.emit('route', url);
|
||||
|
||||
Reference in New Issue
Block a user