We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da98346 commit a8056faCopy full SHA for a8056fa
1 file changed
bonescript/index.js
@@ -616,8 +616,6 @@ if(socketio.exists) {
616
}
617
618
callargs.push(callback);
619
- var toeval = name + '(' + callargs + ');';
620
- //console.log('Calling ' + toeval);
621
myfuncs[name].func.apply(this, callargs);
622
} catch(ex) {
623
console.log('Error handing ' + name + ' message: ' + ex);
@@ -659,10 +657,10 @@ exports.Server = function(port, subdir, onconnect) {
659
657
loadFile(uri, subdir, res, "text/css");
660
658
} else if(uri.match(/\.htm(.)$/i)) {
661
loadFile(uri, subdir, res, "text/html");
+ } else if(uri.match(/\.svg$/i)) {
+ loadFile(uri, subdir, res, "image/svg+xml");
662
} else if(uri.match(/\.(jpg|png|ico)$/i)) {
663
loadFile(uri, subdir, res, "binary");
664
- } else if(uri.match(/\.svg(.)$/i)) {
665
- loadFile(uri, subdir, res, "image/svg+xml");
666
} else {
667
loadFile(uri, subdir, res, "text/plain");
668
0 commit comments