Skip to content

Commit

Permalink
fixing window reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Aug 4, 2022
1 parent 1d1150f commit 1001b6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tidyUpAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ module.exports = function tidyUpAnnotation(
}
if (
allowNonStandardGenbankTypes ||
get(window || global, "tg_allowNonStandardGenbankTypes")
get(
typeof window !== undefined ? window : global,
"tg_allowNonStandardGenbankTypes"
)
)
return true;
return false;
Expand Down

0 comments on commit 1001b6c

Please sign in to comment.