nashvail / Chronus

Chronus is a "new-tab" chrome extension that tracks time you waste online in order to increase your productivity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

image

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.