Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 15, 2019
1 parent 971a68f commit 8973f61
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion public/js/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions web_src/js/draw.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* globals gitGraph */

$(document).ready(function () {
const graphList = [];
$(() => {
const graphList = [];

if (!document.getElementById('graph-canvas')) {
return;
}
if (!document.getElementById('graph-canvas')) {
return;
}

$("#graph-raw-list li span.node-relation").each(function () {
graphList.push($(this).text());
})
$('#graph-raw-list li span.node-relation').each(function () {
graphList.push($(this).text());
});

gitGraph(document.getElementById('graph-canvas'), graphList);
})
gitGraph(document.getElementById('graph-canvas'), graphList);
});
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'public/js'),
filename: "index.js"
filename: 'index.js'
},
optimization: {
minimize: true,
Expand Down

0 comments on commit 8973f61

Please sign in to comment.