mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Slightly improve error handling when reading files
This commit is contained in:
parent
23bbb3fa88
commit
7e4d9aa64a
@ -40,12 +40,12 @@ if (storage != null) {
|
||||
filerequest.onsuccess = function() {
|
||||
titleFile = filerequest.result;
|
||||
};
|
||||
filerequest.onerror = function() {
|
||||
alert("error reading title file");
|
||||
filerequest.onerror = function(event) {
|
||||
alert("error reading title file : " + event.target.error.name);
|
||||
};
|
||||
};
|
||||
filerequest.onerror = function() {
|
||||
alert("error reading data file");
|
||||
filerequest.onerror = function(event) {
|
||||
alert("error reading data file : " + event.target.error.name);
|
||||
};
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user