Skip to content

Commit e527232

Browse files
wuyalingoYolinWu
andauthored
Support that getState() in HostSync should return when trackingMode is "disabled" (#11)
Co-authored-by: yolin.wu <[email protected]>
1 parent 36c400f commit e527232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/sync-host/src/index.ts

+1
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)