-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: detection logic in quasi-browser environments
- Always use `window` object for detecting DOM-related types; a quasi-browser environment can be loaded on top of a server environment. - Always verify that each property of `window` exists before using it for type detection; nothing is guaranteed in a quasi-browser environment. - Refactor to remove redundant `instanceof window.HTMLElement`.
- Loading branch information
Showing
1 changed file
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters