diff --git a/src/api/query.js b/src/api/query.js index fdfb715..cd9fea2 100644 --- a/src/api/query.js +++ b/src/api/query.js @@ -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; }