Switch to double quotes and reformat codebase with Biome
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
export function polyfillScreenOrientation() {
|
||||
if (
|
||||
typeof window === "undefined" ||
|
||||
typeof screen === "undefined" ||
|
||||
screen.orientation
|
||||
) {
|
||||
if (typeof window === "undefined" || typeof screen === "undefined" || screen.orientation) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.defineProperty(screen, "orientation", {
|
||||
value: {
|
||||
get type() {
|
||||
return window.innerWidth > window.innerHeight
|
||||
? "landscape-primary"
|
||||
: "portrait-primary";
|
||||
return window.innerWidth > window.innerHeight ? "landscape-primary" : "portrait-primary";
|
||||
},
|
||||
get angle() {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user