Error handling response: SyntaxError: Unexpected token u in JSON at position 0
santosh opened this issue · comments
While loading the extension, I'm getting this error:
When I expand that, I get these details:
Context
_generated_background_page.html
Stack Trace
js/background.js:69 (anonymous function)
// Do all the startup tasks
function startUp() {
//Initialize the totalTimeOnWebsites variable to the data gained from the local storage of the user
chrome.storage.local.get(null, function(result){
totalTimeOnWebsites = result["timeData" + numDaysSinceUTC()];
today = result["today"];
websitesToTrack = JSON.parse(result.trackData);
@santosh just remove the json.parse function.
please provide the steps to resolve this.
I am unable to get it working
thanks
@ezio-ac I'm not sure how I resolved it.
I am in no longer in touch with Chronus for a while.