Skip to content

Commit

Permalink
fix(ssr): add check for document
Browse files Browse the repository at this point in the history
closes #197
  • Loading branch information
MatteoGabriele committed Apr 13, 2021
1 parent 571f625 commit 82d9c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getOptions } from "../install";
export default function (...args) {
const { globalObjectName } = getOptions();

if (typeof window === "undefined") {
if (typeof document === "undefined" || typeof window === "undefined") {
return;
}

Expand Down

0 comments on commit 82d9c30

Please sign in to comment.