Skip to content

Commit 0595ed6

Browse files
committed
Semicolons are considered best practice for JS.
1 parent 44a2a3d commit 0595ed6

File tree

1 file changed

+6
-7
lines changed
  • invert-gradle-plugin/src/main/resources/META-INF

1 file changed

+6
-7
lines changed

invert-gradle-plugin/src/main/resources/META-INF/invert.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ window.loadJsFileAsync = function (url, notifyCompleteCallback) {
1515
let s = document.createElement('script');
1616
s.setAttribute('src', url);
1717
s.onload = function () {
18-
notifyCompleteCallback()
18+
notifyCompleteCallback();
1919
};
2020
document.body.appendChild(s);
2121
}
2222

2323
window.invertKeyToUrl = function (key) {
24-
return "js/" + key + ".js"
24+
return "js/" + key + ".js";
2525
}
2626

2727
window.externalLoadJavaScriptFile = function (key, callback) {
2828
let src = invertKeyToUrl(key)
2929
loadJsFileAsync(src, function () {
3030
let json = JSON.stringify(window.invert_report[key])
3131
// null out global variable since it has been serialized to json
32-
window.invert_report[key] = null
33-
callback(json)
32+
window.invert_report[key] = null;
33+
callback(json);
3434
})
3535
}
3636

@@ -100,14 +100,13 @@ window.renderChartJs = function (domElementId, graphDataJson, onClick) {
100100
}
101101

102102
window.markdownToHtml = function (markdownStr) {
103-
return marked.parse(markdownStr)
103+
return marked.parse(markdownStr);
104104
}
105105

106106
window.callDecodeURIComponent = function (str) {
107-
return decodeURIComponent(escape(str))
107+
return decodeURIComponent(escape(str));
108108
}
109109

110110
window.highlightJsHighlightAll = function () {
111-
console.log("hljs.highlightAll()")
112111
hljs.highlightAll();
113112
}

0 commit comments

Comments
 (0)