mirror of
https://github.com/movie-web/movie-web.git
synced 2024-06-13 12:48:47 +02:00
12 lines
326 B
TypeScript
12 lines
326 B
TypeScript
import { isExtensionActiveCached } from "@/backend/extension/messaging";
|
|
import { conf } from "@/setup/config";
|
|
import { useAuthStore } from "@/stores/auth";
|
|
|
|
export function isAutoplayAllowed() {
|
|
return Boolean(
|
|
conf().ALLOW_AUTOPLAY ||
|
|
isExtensionActiveCached() ||
|
|
useAuthStore.getState().proxySet,
|
|
);
|
|
}
|