Update deprecated method.
Update deprecated method.

Substituting new method per Arthur's instructions and internal bug 166101751.

Thanks!
firebase/quickstart-js,firebase/quickstart-js,firebase/quickstart-js