1
0
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:
rhysd 2017-04-19 00:45:53 +09:00
parent ddeef3157a
commit 5442699549

View File

@ -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];