mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-22 08:17:40 +00:00
11 lines
326 B
TypeScript
11 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,
|
|
);
|
|
}
|