Skip to content

Commit

Permalink
Fix regression in bootstrapping
Browse files Browse the repository at this point in the history
This impacts most environments, but particularly WebWorkers

See kriskowal#607 and
kriskowal#592 (comment)
  • Loading branch information
kriskowal committed Nov 10, 2014
1 parent cded3f1 commit e175243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions q.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
}

// <script>
} else if (typeof window !== "undefined") {
window.Q = Q = definition();
} else if (typeof self !== "undefined") {
self.Q = definition();

} else {
throw new Error("This environment was not anticiapted by Q. Please file a bug.");
Expand Down

0 comments on commit e175243

Please sign in to comment.