Skip to content

Commit

Permalink
oops: find document and Text in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Aug 25, 2016
1 parent 9d9d2ea commit 298ebee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var split = require('browser-split')
var ClassList = require('class-list')
var htmlElement = require('html-element');

var document = htmlElement.document;
var Text = htmlElement.Text;
var document = htmlElement.document || window.document;
var Text = htmlElement.Text || window.Text;

function context () {

Expand Down

0 comments on commit 298ebee

Please sign in to comment.