12345678910111213141516171819202122232425262728293031323334353637 |
- "use strict";
- const firebase = require("./default-namespace");
- const processGlobal = typeof process !== 'undefined' ? process : 0;
- if (Object.prototype.toString.call(processGlobal) !== '[object process]') {
- const message = `
- ======== WARNING! ========
- firebase-admin appears to have been installed in an unsupported environment.
- This package should only be used in server-side or backend Node.js environments,
- and should not be used in web browsers or other client-side environments.
- Use the Firebase JS SDK for client-side Firebase integrations:
- https://firebase.google.com/docs/web/setup
- `;
-
- console.error(message);
- }
- module.exports = firebase;
|