mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
This commit is contained in:
parent
8bf263a871
commit
f5a72edcfd
4 changed files with 15 additions and 0 deletions
9
app/src/util/iOSPurchase.ts
Normal file
9
app/src/util/iOSPurchase.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const IOSPurchase = (data:string) => {
|
||||
/// #if MOBILE
|
||||
document.querySelector("#modelMain").dispatchEvent(new CustomEvent("click", {
|
||||
detail: document.querySelector("#modelMain #refresh")
|
||||
}));
|
||||
/// #else
|
||||
document.querySelector('.config__tab-container[data-name="account"] #refresh').dispatchEvent(new Event("click"));
|
||||
/// #endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue