Browse Source

disable background save by default on Firefox Mobile

Gildas 5 năm trước cách đây
mục cha
commit
6a19661331
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      extension/core/bg/config.js

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

@@ -29,6 +29,7 @@ singlefile.extension.core.bg.config = (() => {
 	const DEFAULT_PROFILE_NAME = "__Default_Settings__";
 	const DISABLED_PROFILE_NAME = "__Disabled_Settings__";
 	const REGEXP_RULE_PREFIX = "regexp:";
+	const BACKGROUND_SAVE_DEFAULT = !/Mobile.*Firefox/.test(navigator.userAgent);
 
 	const DEFAULT_CONFIG = {
 		removeHiddenElements: true,
@@ -66,7 +67,7 @@ singlefile.extension.core.bg.config = (() => {
 		removeVideoSrc: true,
 		displayInfobar: true,
 		displayStats: false,
-		backgroundSave: true,
+		backgroundSave: BACKGROUND_SAVE_DEFAULT,
 		defaultEditorMode: "normal",
 		applySystemTheme: true,
 		autoSaveDelay: 1,