Skip to content

Commit

Permalink
restore document from global.document
Browse files Browse the repository at this point in the history
has a bug in nodes to access global.document
  • Loading branch information
army8735 committed Mar 6, 2014
1 parent 4ab46da commit 18aa9c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/sea-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function id2Uri(id, refUri) {
}


var doc = global.document
var doc = document
var cwd = dirname(doc.URL)
var scripts = doc.scripts

Expand Down
2 changes: 1 addition & 1 deletion dist/sea.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/util-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function id2Uri(id, refUri) {
}


var doc = global.document
var doc = document
var cwd = dirname(doc.URL)
var scripts = doc.scripts

Expand Down

0 comments on commit 18aa9c6

Please sign in to comment.