Skip to content

Commit

Permalink
chore: 代码样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiuChen committed Apr 23, 2023
1 parent c76a8f3 commit 835f959
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ export function loadImage(docId: string) {
}

export function openLink(url: string) {
if (isElectron) {
utools.shellOpenExternal(url)
} else {
window.open(url)
}
isElectron ? utools.shellOpenExternal(url) : window.open(url)
}

/**
Expand Down

0 comments on commit 835f959

Please sign in to comment.