Skip to content

Commit

Permalink
Allow screenfull to work in non-browser JS environments (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx authored and sindresorhus committed Apr 16, 2017
1 parent 061a4ab commit aacee47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/screenfull.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(function () {
'use strict';

var document = typeof window !== 'undefined' ? window.document : {};
var isCommonjs = typeof module !== 'undefined' && module.exports;
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;

Expand Down

0 comments on commit aacee47

Please # to comment.