We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f242b commit d049a36Copy full SHA for d049a36
src/background/memoryOptimization.ts
@@ -103,11 +103,15 @@ function memoryOptimization() {
103
};
104
105
function preCheckForMemOpt() {
106
- chrome.system.memory.getInfo(function (info) {
107
- if (info.availableCapacity / info.capacity < 0.2) {
108
- checkForMemOpt();
109
- }
110
- });
+ if (utils.getUa() === 'firefox') {
+ checkForMemOpt();
+ } else {
+ chrome.system.memory.getInfo(function (info) {
+ if (info.availableCapacity / info.capacity < 0.2) {
111
112
+ }
113
+ });
114
115
}
116
117
function saveSuspendUrl(tab) {
0 commit comments