fix: 'New' badge should never show to document creator, regardless of whether a view has been logged (#1758)

This commit is contained in:
Tom Moor
2020-12-31 16:46:33 -08:00
committed by GitHub
parent 2cc45187e6
commit f8ab793053
7 changed files with 249 additions and 257 deletions

View File

@@ -5,6 +5,6 @@ export const metaDisplay = isMac ? "⌘" : "Ctrl";
export const meta = isMac ? "cmd" : "ctrl";
export function isMetaKey(event: KeyboardEvent) {
export function isMetaKey(event: KeyboardEvent | MouseEvent) {
return isMac ? event.metaKey : event.ctrlKey;
}