Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typecheck safety

  • Loading branch information...
commit a4a5dc3b666bc5bcba734cae68902a96d6d1cccd 1 parent fa2f415
Davis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/antinode.js
View
2  lib/antinode.js
@@ -28,7 +28,7 @@ var server;
function load_hostspecific_handlers() {
for (var host in settings.hosts) {
var script = settings.hosts[host]['handler'];
- if (script !== undefined) {
+ if (script !== undefined && typeof script === 'string') {
/* remove filename extension */
var require_name = script.match(/(.*)\..*/)[1];
settings.hosts[host].handler = require(require_name);
Please sign in to comment.
Something went wrong with that request. Please try again.