feature(cloudcmd) prefix property deprecated

This commit is contained in:
coderaiser 2015-08-10 07:47:06 -04:00
parent d7957002ee
commit 7e0d44b480
2 changed files with 6 additions and 2 deletions

View file

@ -276,9 +276,10 @@ server = http.createServer(app);
socket = io.listen(server);
app.use(cloudcmd({
prefix: '/cloudcmd',/* base URL or function which returns base URL (optional) */
socket: socket, /* used by Config, Edit (optional) and Console (required) */
config: {} /* config data (optional) */
config: { /* config data (optional) */
prefix: '/cloudcmd', /* base URL or function which returns base URL (optional) */
}
}));
server.listen(PORT);

View file

@ -55,6 +55,9 @@
options = p.config || {},
keys = Object.keys(options);
if (typeof params.prefix !== undefined)
console.log('cloudcmd: prefix property deprecated, use config.prefix instead');
keys.forEach(function(name) {
var value = options[name];