|
|
@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) { |
|
|
|
tx.oncomplete = function () { |
|
|
|
tx.oncomplete = function () { |
|
|
|
resolve(); |
|
|
|
resolve(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
tx.onerror = function () { |
|
|
|
|
|
|
|
resolve(); |
|
|
|
|
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -74,6 +77,9 @@ function loadCache(address, hashCode) { |
|
|
|
format: found.format, |
|
|
|
format: found.format, |
|
|
|
} : null); |
|
|
|
} : null); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
tx.onerror = function () { |
|
|
|
|
|
|
|
resolve(null); |
|
|
|
|
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|