A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/hammerjs/hammer.js/issues/930 below:

Hammer.js fails in node since window is undefined · Issue #930 · hammerjs/hammer.js · GitHub

Hammer.js fails in node since window is undefined. Also document.

Line 2568 assumes window -
https://github.com/hammerjs/hammer.js/blob/master/hammer.js#L2568

We're trying to run a bundle produced by webpack in the web as well as node targets. It would be helpful to include the same bundle even though we're not using hammer.js on the node side.

jQuery does something like -

typeof window !== "undefined" ? window : this

hakatashi, AleshaOleg, AnthonyNahas, minortom, PuriaRad and 12 moremehrzadrezvani


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4