Skip to content

Commit b3a9d9e

Browse files
David Biereggeratk
authored andcommitted
Make backwards compatible
1 parent aef4561 commit b3a9d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/storage/src/cookies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const cookieStorage: StorageWithOptions<CookieOptions> = addClearMethod({
152152
return length;
153153
},
154154
get length() {
155-
throw new Error("CookieStorage.length is not supported, use CookieStorage.getLength() instead");
155+
return this.getLength
156156
}
157157
});
158158

0 commit comments

Comments
 (0)