Skip to content

Returns `true` if the code is running within a Browser window. Use this function if you need special code paths for when running in a Browser window, a Web Worker, or another environment (such as Node.js).

License

canjs/can-is-browser-window

Repository files navigation

can-is-browser-window

Join our Slack Join our Discourse License: MIT npm version Travis build status Greenkeeper badge

Returns true if the code is running within a Browser window. Use this function if you need special code paths for when running in a Browser window, a Web Worker, or another environment (such as Node.js).

Documentation

Read the can-is-browser-window API docs on CanJS.com.

Changelog

See the latest releases on GitHub.

Contributing

The contribution guide has information on getting help, reporting bugs, developing locally, and more.

License

MIT

About

Returns `true` if the code is running within a Browser window. Use this function if you need special code paths for when running in a Browser window, a Web Worker, or another environment (such as Node.js).

Resources

License

Stars

Watchers

Forks

Packages

No packages published