|
@@ -28,6 +28,9 @@ const HELP_PAGE_PATH = "/src/ui/pages/help.html";
|
|
|
let DEFAULT_PROFILE_NAME, DISABLED_PROFILE_NAME, CURRENT_PROFILE_NAME;
|
|
let DEFAULT_PROFILE_NAME, DISABLED_PROFILE_NAME, CURRENT_PROFILE_NAME;
|
|
|
const AUTO_SAVE_SUPPORTED = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
const AUTO_SAVE_SUPPORTED = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
const BACKGROUND_SAVE_SUPPORTED = !(/Mobile.*Firefox/.test(navigator.userAgent) || /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent));
|
|
const BACKGROUND_SAVE_SUPPORTED = !(/Mobile.*Firefox/.test(navigator.userAgent) || /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent));
|
|
|
|
|
+const OPEN_SAVED_PAGE_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
|
|
+const INFOBAR_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
|
|
+const BOOKMARKS_API_SUPPORTED = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
|
|
|
|
|
browser.runtime.sendMessage({ method: "config.getConstants" }).then(data => ({ DEFAULT_PROFILE_NAME, DISABLED_PROFILE_NAME, CURRENT_PROFILE_NAME } = data));
|
|
browser.runtime.sendMessage({ method: "config.getConstants" }).then(data => ({ DEFAULT_PROFILE_NAME, DISABLED_PROFILE_NAME, CURRENT_PROFILE_NAME } = data));
|
|
|
const removeHiddenElementsLabel = document.getElementById("removeHiddenElementsLabel");
|
|
const removeHiddenElementsLabel = document.getElementById("removeHiddenElementsLabel");
|
|
@@ -666,6 +669,16 @@ if (!BACKGROUND_SAVE_SUPPORTED) {
|
|
|
document.getElementById("confirmFilenameOption").hidden = true;
|
|
document.getElementById("confirmFilenameOption").hidden = true;
|
|
|
document.getElementById("filenameConflictAction").hidden = true;
|
|
document.getElementById("filenameConflictAction").hidden = true;
|
|
|
}
|
|
}
|
|
|
|
|
+if (!BOOKMARKS_API_SUPPORTED) {
|
|
|
|
|
+ document.getElementById("bookmarksOptions").hidden = true;
|
|
|
|
|
+}
|
|
|
|
|
+if (!OPEN_SAVED_PAGE_SUPPORT) {
|
|
|
|
|
+ document.getElementById("openSavedPageOption").hidden = true;
|
|
|
|
|
+ document.getElementById("autoOpenEditorOption").hidden = true;
|
|
|
|
|
+}
|
|
|
|
|
+if (!INFOBAR_SUPPORT) {
|
|
|
|
|
+ document.getElementById("displayInfobar").hidden = true;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
getHelpContents();
|
|
getHelpContents();
|
|
|
|
|
|