fix: feature detect from constructor

This commit is contained in:
Victor Westerlund 2023-08-22 15:50:12 +02:00
parent f43aa7b803
commit 07a4c401e3

View file

@ -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();
}