mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #991 Part 4: Network and URILoader
This commit is contained in:
parent
e2e42f0e1a
commit
3da26ba9e3
4 changed files with 9 additions and 35 deletions
|
|
@ -78,24 +78,14 @@ function InitializeCacheDevices(memDevice, diskDevice) {
|
|||
this.start = function() {
|
||||
prefService.setBoolPref("browser.cache.memory.enable", memDevice);
|
||||
if (memDevice) {
|
||||
try {
|
||||
cap = prefService.getIntPref("browser.cache.memory.capacity");
|
||||
}
|
||||
catch(ex) {
|
||||
cap = 0;
|
||||
}
|
||||
cap = prefService.getIntPref("browser.cache.memory.capacity", 0);
|
||||
if (cap == 0) {
|
||||
prefService.setIntPref("browser.cache.memory.capacity", 1024);
|
||||
}
|
||||
}
|
||||
prefService.setBoolPref("browser.cache.disk.enable", diskDevice);
|
||||
if (diskDevice) {
|
||||
try {
|
||||
cap = prefService.getIntPref("browser.cache.disk.capacity");
|
||||
}
|
||||
catch(ex) {
|
||||
cap = 0;
|
||||
}
|
||||
cap = prefService.getIntPref("browser.cache.disk.capacity", 0);
|
||||
if (cap == 0) {
|
||||
prefService.setIntPref("browser.cache.disk.capacity", 1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue