Skip to content

Commit

Permalink
fix:(graphiql) - for SSR, regression from extraKeys bugfix, fixes #942
Browse files Browse the repository at this point in the history
- dont expect window to be present for extraKeys MacOs detection logic
- use existing graphiql convention for detecting the presence of window
  • Loading branch information
acao committed Aug 19, 2019
1 parent 7c381f9 commit 77db31e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/graphiql/src/utility/commonKeys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const isMacOs = window.navigator.platform === 'MacIntel';
let isMacOs = false

if (typeof window === Object) {
isMacOs = window.navigator.platform === 'MacIntel';
}

const commonKeys = {
// Persistent search box in Query Editor
Expand Down

0 comments on commit 77db31e

Please sign in to comment.