From 07a4c401e3b34cd00ab5da38af1269bcd55b4b18 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 22 Aug 2023 15:50:12 +0200 Subject: [PATCH] fix: feature detect from constructor --- assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 35032d0..0202b00 100644 --- a/assets/script.js +++ b/assets/script.js @@ -3,7 +3,7 @@ class YogaBook9iBlackout { this.fullMode = true; // Disable Window Management API features if not available - if (!this.requestPermission()) { + if (!("getScreenDetails") in window) { this.polyfill(); }