Skip to content

Commit e527232

Browse files
Yolin WuYolinWu
andauthored
Support that getState() in HostSync should return when trackingMode is "disabled" (#11)
Co-authored-by: yolin.wu <yolin.wu@ringcentral.com>
1 parent 36c400f commit e527232

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/sync-host/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class HostSync extends Sync {
9696
case trackingMode.hash:
9797
return removeHash(new URL(super.getState(), location.origin).hash);
9898
case trackingMode.disabled:
99+
return '';
99100
case trackingMode.full:
100101
case trackingMode.slave:
101102
return super.getState();

0 commit comments

Comments
 (0)