Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xjccc committed Mar 13, 2024
1 parent 3ba1b25 commit d262108
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/evoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function evokeByIFrame(uri: string): void {
if (!iframe) {
iframe = document.createElement('iframe');
iframe.style.cssText = 'display:none;border:0;width:0;height:0;';
document.body.appendChild(iframe);
document.body.append(iframe);
}

iframe.src = uri;
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ class CallApp {
evokeByLocation(schemeURL);
checkOpenFall = this.fallToFbUrl;
}
} else if (Browser.isWechat || Browser.isBaidu || (Browser.isWeibo && !isSupportWeibo) || Browser.isQzone) {
} else if (
Browser.isWechat ||
Browser.isBaidu ||
(Browser.isWeibo && !isSupportWeibo) ||
Browser.isQzone
) {
evokeByLocation(this.options.fallback);
} else {
evokeByIFrame(schemeURL);
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface CallappOptions {
};
appstore: string;
yingyongbao?: string;
isSupportWeibo?:boolean;
isSupportWeibo?: boolean;
fallback: string;
timeout?: number;
logFunc?: (status: 'pending' | 'failure') => void;
Expand Down

0 comments on commit d262108

Please sign in to comment.