Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyYan authored May 19, 2024
1 parent b79b4d2 commit 5126ea0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/leatherfacee.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class LefaceFactory {
}
}

LefaceCrossPlatform(t) {
function LefaceCrossPlatform(t) {
const e = navigator.userAgent.toLowerCase();
let r = "Desktop";
/iphone|ipad|android|windows phone/.test(e) ? (r = "Mobile") : t.Tablet && window.innerWidth >= 768 && window.innerWidth <= 1024 && (r = "Tablet");
Expand All @@ -337,7 +337,6 @@ LefaceCrossPlatform(t) {
(t.rel = "stylesheet"), (t.href = n), document.head.appendChild(t);
} else console.error("No CSS defined for the current platform.");
}
}

class LefaceUtils {
static loadExternalCSS(url) {
Expand Down

0 comments on commit 5126ea0

Please sign in to comment.