mirror of
https://codeberg.org/vlw/9i-blackout.git
synced 2025-09-13 19:33:41 +02:00
fix: feature detect from constructor
This commit is contained in:
parent
f43aa7b803
commit
07a4c401e3
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class YogaBook9iBlackout {
|
||||||
this.fullMode = true;
|
this.fullMode = true;
|
||||||
|
|
||||||
// Disable Window Management API features if not available
|
// Disable Window Management API features if not available
|
||||||
if (!this.requestPermission()) {
|
if (!("getScreenDetails") in window) {
|
||||||
this.polyfill();
|
this.polyfill();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue