Skip to content

Commit

Permalink
optimize: invalid link should not pass to qt backend
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Apr 21, 2022
1 parent 43cf764 commit 4efbf6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/gd-builtin.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ function gdExpandOptPart(expanderId, optionalId) {

function emitClickedEvent(link) {
try {
if ('string' != typeof(link)) {
return;
}
articleview.linkClickedInHtml(link)
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 4efbf6f

Please sign in to comment.