Files
source-presences/scripts/sdk-runtime.mjs
T
2026-04-25 23:58:58 +03:00

15 lines
429 B
JavaScript

// Runtime stand-in for `@source/presence-sdk` when bundling presences.
// definePresence is just identity; the extension's content-script runtime
// passes a PresenceContext to lifecycle methods, so the package itself only
// needs to export constants and a pass-through helper.
export const ActivityType = Object.freeze({
PLAYING: 0,
LISTENING: 2,
WATCHING: 3,
});
export function definePresence(def) {
return def;
}