Uh oh!
There was an error while loading. Please reload this page.
Fix "document is not defined" error - #835
Conversation
@diegohaz Ah, good catch! I think instead of the changes you proposed, we will want to update the util https://github.com/shipshapecode/tether/blob/master/src/js/utils/type-check.js#L38 It should check if |
diegohaz
commented
Jul 7, 2021
@rwwagner90 That will not fix the error as It's not specific to
|
RobbieTheWagner
commented
Jul 13, 2021
Thanks for the explanation @diegohaz and thanks for the PR! |


Fixes#834
I see that this was updated on #333. But
isUndefined(document)will throw an error ifdocumentwasn't set in the first place, while thetypeofcheck will not.