Added catch statements

This commit is contained in:
Kevin Röbert
2020-02-20 14:12:06 +01:00
parent a44e13645c
commit f7949e89f6
8 changed files with 41 additions and 45 deletions

View File

@@ -31,7 +31,7 @@ function resetGlobalLog(){
browser.runtime.sendMessage({
function: "setData",
params: ['log', JSON.stringify(obj)]
});
}).catch(handleError);
location.reload();
}
@@ -72,7 +72,7 @@ function getLog()
"url": getDataTableTranslation()
}
} ).order([3, 'desc']).draw();
});
}).catch(handleError);
}
/**
@@ -107,8 +107,8 @@ function exportGlobalLog() {
'url': URL.createObjectURL(blob),
'filename': 'ClearURLsLogExport.json',
'saveAs': true
});
});
}).catch(handleError);
}).catch(handleError);
}
/**