Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jpxd committed Sep 12, 2015
1 parent 4fef7f2 commit 10e6a73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions nodewiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ while ((option = parser.getopt()) !== undefined) {
break;

case 'l':
if (listenAddr != "") {
if (listenAddr !== "") {
console.log("ERROR: Conflicting use of --addr and --local.\n",
"Use only one.");
process.exit(1);
Expand Down Expand Up @@ -134,7 +134,7 @@ io.sockets.on('connection', function (socket) {

var dirFolders = []; // array to hold the names of all folders in current directory
dir.forEach(function (i) {
if (i.folder == true) {
if (i.folder === true) {
dirFolders.push(i.name);
}
});
Expand Down Expand Up @@ -176,7 +176,7 @@ io.sockets.on('connection', function (socket) {
links = getDir.parseLinks(dir, directoryDepth);
mdserver.readFolder(links, socket);
}
})
});

socket.on('refreshNav', function () {
refreshNavLinks();
Expand Down Expand Up @@ -204,18 +204,18 @@ io.sockets.on('connection', function (socket) {
dir = getDir.getDir(currentPath);
if (typeof dir != 'undefined') {
dir.forEach(function (i) {
if (i.folder == true) {
if (i.folder === true) {
dirFolders.push(i.name);
}
});
}
}

});
if (exports.gitMode == true) {
if (exports.gitMode === true) {
console.log('Using git mode.');
}
if (listenAddr != "") {
if (listenAddr !== "") {
console.log("server started, addr:port = %s:%s", listenAddr, portNumber);
} else {
console.log("server started, port = " + portNumber);
Expand Down
2 changes: 1 addition & 1 deletion static/js/site.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$(document).ready(function () {
$('[data-toggle="offcanvas"]').click(function () {
$('.row-offcanvas').toggleClass('active')
$('.row-offcanvas').toggleClass('active');
});
});

0 comments on commit 10e6a73

Please sign in to comment.