File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed
Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 22 "manifest_version" : 2 ,
33 "name" : " __MSG_infoName__" ,
44 "short_name" : " Cloudopt AdBlocker" ,
5- "version" : " 2.1.1 " ,
5+ "version" : " 2.1.2 " ,
66 "content_security_policy" : " script-src 'self' 'unsafe-eval'; object-src 'self'" ,
77 "description" : " __MSG_infoDescription__" ,
88 "default_locale" : " en" ,
3030 ],
3131 "browser_action" : {
3232 "default_icon" : {
33- "19" : " image/icon/default/icon64 .png" ,
34- "38" : " image/icon/default/icon64 .png"
33+ "19" : " image/icon/default/icon19 .png" ,
34+ "38" : " image/icon/default/icon38 .png"
3535 },
3636 "default_title" : " Cloudopt AdBlocker" ,
3737 "default_popup" : " popup.html"
101101 " adguard/assistant/i/close.svg" ,
102102 " suspend.html"
103103 ]
104- }
104+ }
Original file line number Diff line number Diff line change 2828 "@types/dompurify" : " ^0.0.33" ,
2929 "@types/lodash" : " ^4.14.138" ,
3030 "art-template" : " ^4.13.2" ,
31- "babel-polyfill" : " ^6.26.0" ,
3231 "bootstrap" : " ^4.3.1" ,
3332 "cross-env" : " ^6.0.3" ,
3433 "css-loader" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -103,11 +103,15 @@ function memoryOptimization() {
103103 } ;
104104
105105 function preCheckForMemOpt ( ) {
106- chrome . system . memory . getInfo ( function ( info ) {
107- if ( info . availableCapacity / info . capacity < 0.2 ) {
108- checkForMemOpt ( ) ;
109- }
110- } ) ;
106+ if ( utils . getUa ( ) === 'firefox' ) {
107+ checkForMemOpt ( ) ;
108+ } else {
109+ chrome . system . memory . getInfo ( function ( info ) {
110+ if ( info . availableCapacity / info . capacity < 0.2 ) {
111+ checkForMemOpt ( ) ;
112+ }
113+ } ) ;
114+ }
111115 }
112116
113117 function saveSuspendUrl ( tab ) {
You can’t perform that action at this time.
0 commit comments