mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 21:38:12 +08:00
Fix unit tests (#2428)
* only create toaster if we're on the browser * drop/fix references to window * add back fe unit tests
This commit is contained in:
@@ -102,7 +102,7 @@ const CXG_SERVER_PORT =
|
||||
|
||||
let _API;
|
||||
|
||||
if (window.CELLXGENE && window.CELLXGENE.API) {
|
||||
if (typeof window !== "undefined" && window.CELLXGENE && window.CELLXGENE.API) {
|
||||
_API = window.CELLXGENE.API;
|
||||
} else {
|
||||
if (CXG_SERVER_PORT === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user