learngerman/patches/0005-no-ssr.diff

12 lines
359 B
Diff
Raw Normal View History

2021-10-12 01:25:39 +00:00
--- orig/utils/ssr.jsx 2021-10-11 21:17:02.041396123 -0300
+++ sources-gen/utils/ssr.jsx 2021-10-11 21:22:17.825984088 -0300
@@ -1,7 +1,3 @@
-function isServer() {
+export function isServer() {
return !(typeof window !== 'undefined' && window.document);
}
-// CommonJS export to be able to use it on server and client
-module.exports = {
- isServer,
-};