fix: open url

This commit is contained in:
Xmader 2020-12-31 21:59:10 -05:00
parent 047fbf06b6
commit 2cfb060750
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -218,9 +218,7 @@ export namespace BtnAction {
}, fallback, timeout) }, fallback, timeout)
} }
export const openUrl = (url: UrlInput, fallback?: () => Promisable<void>, timeout?: number): BtnAction => { export const openUrl = download
return download(url, fallback, timeout, '_blank')
}
export const mscoreWindow = (scoreinfo: ScoreInfo, fn: (w: Window, score: WebMscore, processingTextEl: ChildNode) => any): BtnAction => { export const mscoreWindow = (scoreinfo: ScoreInfo, fn: (w: Window, score: WebMscore, processingTextEl: ChildNode) => any): BtnAction => {
return async (btnName, btn, setText) => { return async (btnName, btn, setText) => {