mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-27 05:54:15 +01:00
avoid reloading the same page
This commit is contained in:
parent
ddeef3157a
commit
5442699549
@ -35,7 +35,9 @@ function setupKeybinds(keybinds: {[key: string]: string}, host: string) {
|
||||
const url = `https://${host}${action}`;
|
||||
log.info('URL Shortcut:', url);
|
||||
e.preventDefault();
|
||||
window.location.href = url;
|
||||
if (window.location.href !== url) {
|
||||
window.location.href = url;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const func = ShortcutActions[action];
|
||||
|
Loading…
x
Reference in New Issue
Block a user