fix bug
This commit is contained in:
@@ -17,4 +17,3 @@ export const client = process.env.REACT_APP_CLIENT;
|
||||
export const isExt = CLIENT_EXTS.includes(client);
|
||||
export const isGm = client === CLIENT_USERSCRIPT;
|
||||
export const isWeb = client === CLIENT_WEB;
|
||||
export const isMobile = "ontouchstart" in document.documentElement;
|
||||
|
||||
1
src/libs/mobile.js
Normal file
1
src/libs/mobile.js
Normal file
@@ -0,0 +1 @@
|
||||
export const isMobile = "ontouchstart" in document.documentElement;
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { limitNumber } from "../../libs/utils";
|
||||
import { isMobile } from "../../libs/browser";
|
||||
import { isMobile } from "../../libs/mobile";
|
||||
|
||||
export default function Draggable(props) {
|
||||
const [origin, setOrigin] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user