Add warning if zoom to fill is installed

This commit is contained in:
Ajay
2023-07-14 20:37:08 -04:00
parent cee00a87c1
commit 8bcaf906fb
4 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
import Config from "../config";
export function runCompatibilityChecks() {
if (Config.config.showZoomToFillError) {
setTimeout(() => {
const zoomToFill = document.querySelector(".zoomtofillBtn");
if (zoomToFill) {
alert(chrome.i18n.getMessage("zoomToFillUnsupported"));
}
Config.config.showZoomToFillError = false;
}, 10000);
}
}