Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Fix mistake in 'require' logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Mar 15, 2012
1 parent 26b28d7 commit 8673597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap.js
Expand Up @@ -37,7 +37,7 @@ function require(name) {

var code, func, exports;

if (name === 'webpage' || name === 'fs' || name === 'webserver' | name === 'system') {
if (name === 'webpage' || name === 'fs' || name === 'webserver' || name === 'system') {
code = phantom.loadModuleSource(name);
func = new Function("exports", "window", code);
exports = {};
Expand Down

0 comments on commit 8673597

Please sign in to comment.