Skip to content

Instantly share code, notes, and snippets.

@mbleigh

mbleigh/index.html

Created Apr 6, 2017
Embed
What would you like to do?
<script src="/__/firebase/3.7.4/firebase-app.js"></script>
<script src="/__/firebase/init.js"></script>
<script>
function funcURL(fnName) {
let projectIdIsh = firebase.app().options.authDomain.split('.')[0];
return `https://us-central1-${projectIdIsh}.cloudfunctions.net/${fnName}`;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.