Skip to content

Instantly share code, notes, and snippets.

@kwindla
Created March 10, 2019 21:56
Show Gist options
  • Save kwindla/099db40d7222ff5d36f5a70b1f0ec361 to your computer and use it in GitHub Desktop.
Save kwindla/099db40d7222ff5d36f5a70b1f0ec361 to your computer and use it in GitHub Desktop.
if our page's url includes a hash fragment, treat that as a call url to join on page load
<body onload="maybeJoinCall()">
function maybeJoinCall() {
if (window.location.hash) {
startCall(window.location.hash.substring(1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment