UNPKG

asteroid-oauth-mixin

Version:
8 lines (7 loc) 228 B
export default function getOauthProtocol (protocol) { if (protocol === "ws:" || protocol === "http:") { return "http:"; } else if (protocol === "wss:" || protocol === "https:") { return "https:"; } }