Skip to content

Commit d112efe

Browse files
authored
Merge pull request #278 from wildan3105/hotfix/remove-export-chart-spinner
fix: use supported node version and remove export in public js files
2 parents e142de6 + 4f874e5 commit d112efe

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.10.0

public/js/chart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* eslint-disable no-useless-escape */
22
/* eslint-disable no-undef */
33

4-
export const sum = (array) => {
4+
const sum = (array) => {
55
if (array.length === 0) {
66
return 0;
77
}
88

99
return array.reduce((acum, val) => (!isNaN(val) ? acum + val : 0), 0);
1010
};
1111

12-
export const slugify = (text) =>
12+
const slugify = (text) =>
1313
text
1414
.toString()
1515
.toLowerCase()

public/js/spinner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ document.getElementById('overlay').style.visibility = 'hidden';
22
document.getElementById('realContent').style.visibility = 'visible';
33

44

5-
export const showLoader = () => {
5+
const showLoader = () => {
66
const val = document.getElementById('username').value;
77
if (val !== undefined && val !== null && val.length !== 0) {
88
document.getElementById('overlay').style.visibility = 'visible';

0 commit comments

Comments
 (0)