We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c781a commit 11144e4Copy full SHA for 11144e4
1 file changed
lib/web/JsonpChunkLoadingRuntimeModule.js
@@ -69,7 +69,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
69
if (options && options.baseUri) {
70
return `${RuntimeGlobals.baseURI} = ${JSON.stringify(options.baseUri)};`;
71
}
72
- return `${RuntimeGlobals.baseURI} = (document && document.baseURI) || self.location.href;`;
+ return `${RuntimeGlobals.baseURI} = (typeof document !== 'undefined' && document.baseURI) || self.location.href;`;
73
74
75
/**
0 commit comments