Minor comment tweaks
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ function validateEmail(email) {
|
|||||||
return emailExpression.test(email);
|
return emailExpression.test(email);
|
||||||
}
|
}
|
||||||
|
|
||||||
let excluded = [ //errors that should not be logged
|
let excluded = [ //messages that should not be logged
|
||||||
'Not enough gold',
|
'Not enough gold',
|
||||||
'Not enough recruits',
|
'Not enough recruits',
|
||||||
'Not enough soldiers',
|
'Not enough soldiers',
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ const newsRequest = () => (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//build the object to send
|
//build the object to send
|
||||||
let json = {}
|
let json = {} //TODO: caching
|
||||||
|
|
||||||
//send each file as json
|
//send each file as json
|
||||||
for (let i = 0; i < max; i++) {
|
for (let i = 0; i < max; i++) {
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ export function sessionChange(token) {
|
|||||||
return {
|
return {
|
||||||
type: SESSIONCHANGE,
|
type: SESSIONCHANGE,
|
||||||
token: token
|
token: token
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ class NewsPanel extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchNews(max = 3) {
|
fetchNews(max) {
|
||||||
//build the XHR
|
//build the XHR
|
||||||
let xhr = new XMLHttpRequest();
|
let xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user