Skip to content

Commit 374e960

Browse files
committed
fix: fix Promise not being called
1 parent c48ea22 commit 374e960

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

EnvironmentalOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ async function isFirefox() {
4646
* @returns {Promise}
4747
*/
4848
export function init() {
49-
isMobile.then((isCurrentlyMobile) => {
49+
isMobile().then((isCurrentlyMobile) => {
5050
if (!isCurrentlyMobile) {
5151
return;
5252
}
5353
document.querySelector("body").classList.add("mobile");
5454
});
55-
isFirefox.then((isCurrentlyFirefox) => {
55+
isFirefox().then((isCurrentlyFirefox) => {
5656
if (!isCurrentlyFirefox) {
5757
return;
5858
}

0 commit comments

Comments
 (0)