Skip to content

Commit

Permalink
Support that getState() in HostSync should return when trackingMode i…
Browse files Browse the repository at this point in the history
…s "disabled" (#11)

Co-authored-by: yolin.wu <yolin.wu@ringcentral.com>
  • Loading branch information
wuyalingo and YolinWu authored Mar 7, 2022
1 parent 36c400f commit e527232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sync-host/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class HostSync extends Sync {
case trackingMode.hash:
return removeHash(new URL(super.getState(), location.origin).hash);
case trackingMode.disabled:
return '';
case trackingMode.full:
case trackingMode.slave:
return super.getState();
Expand Down

1 comment on commit e527232

@vercel
Copy link

@vercel vercel bot commented on e527232 Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.