Bugfixes for v1.29
* If focus was set to document.body during archive, focus left pane * Shortcut Guide: Add space between text and shortcut highlight * Ensure that draft attachment can be closed with click on X button * Move to keyDown event for user idle checking * Additional resiliency around avatars; check for them on on-disk * Increase timeouts to preserve websocket connection * On startup, be resilient to malformed JSON in log files * Don't crash if shell.openExternal returns an error * Whenever we request a contact/group sync, also request block list * Avatar popup: Ensure styling is mouse- and keyboard-appropriate * MainHeader: Create popperRoot on demand, not on mount * CompositionInput: Disable default Ctrl-/ shortcut * Update libphonenumber
This commit is contained in:
parent
ee9e86ab7a
commit
e9f08c3da9
19 changed files with 300 additions and 128 deletions
8
main.js
8
main.js
|
@ -166,11 +166,15 @@ function prepareURL(pathSegments, moreKeys) {
|
|||
});
|
||||
}
|
||||
|
||||
function handleUrl(event, target) {
|
||||
async function handleUrl(event, target) {
|
||||
event.preventDefault();
|
||||
const { protocol } = url.parse(target);
|
||||
if (protocol === 'http:' || protocol === 'https:') {
|
||||
shell.openExternal(target);
|
||||
try {
|
||||
await shell.openExternal(target);
|
||||
} catch (error) {
|
||||
console.log(`Failed to open url: ${error.stack}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue