on about window open link with external browser

This commit is contained in:
cutls
2022-10-11 01:03:14 +09:00
parent 03b2fed9ef
commit 7ba34c1074
3 changed files with 51 additions and 37 deletions

View File

@@ -124,8 +124,9 @@
}
$('#hash').html('<a href="https://github.com/cutls/TheDesk/commits/' + about[3] + '" target="_blank">' + about[3].slice(0, 7) + '</a>')
$(document).on('click', 'a', (e) => {
e.preventDefault()
var url = $(e.target).attr('href')
postMessage(['openUrl', url], '*')
postMessage(['openUrlMainProcess', url], '*')
return false
})
</script>