mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
14 lines
284 B
TypeScript
14 lines
284 B
TypeScript
import { useEffect, useState } from "react";
|
|
|
|
import { isWebViewFunc } from "@/utils/panel";
|
|
|
|
export const useWebViewMode = (): boolean => {
|
|
const [isWebView, setIsWebView] = useState(false);
|
|
|
|
useEffect(() => {
|
|
setIsWebView(isWebViewFunc());
|
|
}, []);
|
|
|
|
return isWebView;
|
|
};
|