mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
fix(docs): guard window reference in logging.ts for SSR compatibility (#38201)
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
const console = window.console || {};
|
||||
const console =
|
||||
typeof window !== 'undefined' ? window.console || {} : globalThis.console;
|
||||
const log = console.log || (() => {});
|
||||
|
||||
const logger = {
|
||||
|
||||
Reference in New Issue
Block a user