Kaynağa Gözat

prevent removeUnusedCSSRules reset issue issue

Gildas 7 yıl önce
ebeveyn
işleme
450dda6ce3
1 değiştirilmiş dosya ile 2 ekleme ve 6 silme
  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;