|
@@ -34,6 +34,7 @@ const BOOKMARKS_API_SUPPORTED = !/Safari/.test(navigator.userAgent) || /Chrome/.
|
|
|
const IDENTITY_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
const IDENTITY_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
const CLIPBOARD_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
const CLIPBOARD_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
const NATIVE_API_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
const NATIVE_API_API_SUPPORT = !/Safari/.test(navigator.userAgent) || /Chrome/.test(navigator.userAgent);
|
|
|
|
|
+const WEB_BLOCKING_API_SUPPORT = !/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");
|
|
@@ -691,6 +692,9 @@ if (!CLIPBOARD_API_SUPPORT) {
|
|
|
if (!NATIVE_API_API_SUPPORT) {
|
|
if (!NATIVE_API_API_SUPPORT) {
|
|
|
document.getElementById("saveWithCompanionOption").hidden = true;
|
|
document.getElementById("saveWithCompanionOption").hidden = true;
|
|
|
}
|
|
}
|
|
|
|
|
+if (!WEB_BLOCKING_API_SUPPORT) {
|
|
|
|
|
+ document.getElementById("passReferrerOnErrorOption").hidden = true;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
getHelpContents();
|
|
getHelpContents();
|
|
|
|
|
|