[Example] Work around JSLint

JSLint doesn't like Express's use of static (a reserved word) as a
method name, so change the way it's accessed. WTD-1199.
This commit is contained in:
Victor Woeltjen 2015-06-04 10:47:04 -07:00
parent 450bc059e4
commit 5f64e499f4

2
app.js
View File

@ -55,7 +55,7 @@
});
// Expose everything else as static files
app.use(express.static('.'));
app.use(express['static']('.'));
// Finally, open the HTTP server
app.listen(options.port);