Sfoglia il codice sorgente

prevent removeUnusedCSSRules reset issue issue

Gildas 7 anni fa
parent
commit
450dda6ce3
1 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  1. 2 6
      extension/core/bg/config.js

+ 2 - 6
extension/core/bg/config.js

@@ -106,12 +106,8 @@ singlefile.config = (() => {
 			config.maxResourceSize = 1;
 		}
 		if (config.removeUnusedCSSRules === undefined || config.removeUnusedCSSRules) {
-			const platformInfo = await browser.runtime.getPlatformInfo();
-			if (platformInfo.os == "android") {
-				config.removeUnusedStyles = false;
-			} else {
-				config.removeUnusedStyles = true;
-			}
+			delete config.removeUnusedCSSRules;
+			config.removeUnusedStyles = true;
 		}
 		if (config.removeFrames === undefined) {
 			config.removeFrames = true;