mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Add InvoicePayment() API.
This commit is contained in:
@ -300,6 +300,15 @@ export function openLink(link) {
|
||||
w.location.href = link;
|
||||
}
|
||||
|
||||
export function openLinkSafe(link) {
|
||||
// Javascript window.open issue in safari
|
||||
// https://stackoverflow.com/questions/45569893/javascript-window-open-issue-in-safari
|
||||
let a = document.createElement('a');
|
||||
a.href = link;
|
||||
a.setAttribute('target', '_blank');
|
||||
a.click();
|
||||
}
|
||||
|
||||
export function goToLink(link) {
|
||||
window.location.href = link;
|
||||
}
|
||||
|
Reference in New Issue
Block a user