Skip to content

Commit

Permalink
Fix annotations when there's no cookie (#38716)
Browse files Browse the repository at this point in the history
hectorsector authored Jun 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3a53683 commit 3c10168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/toggle-annotations.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ enum annotationMode {
* @returns The validated mode, or null if leaveNull is true and no valid mode is found.
*/
function validateMode(mode?: string) {
if (mode === annotationMode.Beside || mode === annotationMode.Inline || !mode) return mode
if (mode === annotationMode.Beside || mode === annotationMode.Inline) return mode
// default to Beside
else return annotationMode.Beside
}

0 comments on commit 3c10168

Please sign in to comment.