mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 06:47:31 +09:00
[Pale-Moon] Issue #1854 - Account for users disabling off-line and memory caching.
Resolves #1854
This commit is contained in:
parent
76fca5f990
commit
48f962a66f
2 changed files with 45 additions and 24 deletions
|
|
@ -5893,7 +5893,12 @@ var OfflineApps = {
|
|||
var cacheService = Cc["@mozilla.org/network/application-cache-service;1"]
|
||||
.getService(Ci.nsIApplicationCacheService);
|
||||
if (!groups) {
|
||||
groups = cacheService.getGroups();
|
||||
try {
|
||||
groups = cacheService.getGroups();
|
||||
} catch(ex) {
|
||||
// Cache disabled.
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
var usage = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue