-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stable ua #45
Stable ua #45
Conversation
…tus; point breakdown url update
@@ -104,6 +120,7 @@ const WAIT_FOR_ONLINE_TIMEOUT = 60000; | |||
const googleTrend = new GoogleTrend(); | |||
const userDailyStatus = new DailyRewardStatus(); | |||
const searchQuest = new SearchQuest(googleTrend); | |||
let developer = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
developer = json; | ||
console.log('Developer mode enabled.'); | ||
console.log(developer); | ||
}).catch((ex) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
const devJson = chrome.runtime.getURL('developer.json'); | ||
const fetchProm = await fetch(devJson, {method: 'GET'}).then((response) => { | ||
return response.json(); | ||
}).then((json) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
@@ -14,6 +15,22 @@ function loadSavedSettings() { | |||
}); | |||
} | |||
|
|||
async function getDeveloperSettings() { | |||
const devJson = chrome.runtime.getURL('developer.json'); | |||
const fetchProm = await fetch(devJson, {method: 'GET'}).then((response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.
@@ -14,6 +15,22 @@ function loadSavedSettings() { | |||
}); | |||
} | |||
|
|||
async function getDeveloperSettings() { | |||
const devJson = chrome.runtime.getURL('developer.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
return flag + 2 * (!this._status_.mbSearchStatus.isValidAndCompleted && (mbSearchProgBefore == this._status_.mbSearchStatus.progress)); | ||
} | ||
|
||
async _getAlternativeUA(flag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class properties must be methods. Expected '(' but instead saw '_getAlternativeUA'.
Duplicate class method 'async'.
No description provided.