Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed wrong
if (window)
check (#508)
`if (window)` it is incorrect check that throws `ReferenceError` error in non-browser environment. When you want to check potentially uninitialised variable, you must do it using typeof construction. Btw, i'm getting `ReferenceError: window is not defined` when u just import tribute (w/o `new Tribute`) in Node js (server side rendering). It's strange, i supposed, that initialisation runs after i call `new Tribute`.
- Loading branch information