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/1060 below:

Make hammerjs server friendly · Issue #1060 · hammerjs/hammer.js · GitHub

When redering views on a server (like in a universal / isomorphic application) we do not have a window or document instance. This will result in an error in hammer.js.

Ofcourse hammer.js has no use in a server environment, but hammer.js should not throw an error when it's only being included (via require, or import).

This here, line 2643 in the hammer.js file:

})(window, document, 'Hammer');

is causing trouble, window and document are not defined in a server environment.

tsvetomir, deanrad, leo6104, simenbrekken, Thomas087 and 38 moreamerllica, andorthehood, odahcam, iunki, danielcondemarin and 3 more


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