Skip to content

Commit

Permalink
fix: local page auto fall into online site. (#4513)
Browse files Browse the repository at this point in the history
* fix: local page auto fall into online site.

* refactor
  • Loading branch information
o0vO committed Mar 20, 2024
1 parent 9a9533b commit b93ca1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/packages/client-sdk/src/app.ts
Expand Up @@ -4,7 +4,6 @@ import {
AppMessageType,
AppSendMessageType,
MasterReplyMessageType,
Session,
SessionV1
} from './types';
import { isBrowser } from './utils';
Expand All @@ -15,7 +14,8 @@ class ClientSDK {
private desktopOrigin = '*';
private commonConfig = {
appKey: '',
clientLocation: ''
clientLocation: '',
success: true
};
private userSession: SessionV1 | undefined;
private readonly callback = new Map<string, (data: MasterReplyMessageType) => void>();
Expand Down Expand Up @@ -45,7 +45,7 @@ class ClientSDK {

this.callback.set(messageId, (data: MasterReplyMessageType) => {
clearTimeout(timer);
if (data.success === true) {
if (data.success) {
resolve(data.data);
} else {
reject(data);
Expand Down

0 comments on commit b93ca1e

Please sign in to comment.