mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove unnecessary code
This commit is contained in:
16
website/src/libs/firebase.js
Normal file
16
website/src/libs/firebase.js
Normal file
@@ -0,0 +1,16 @@
|
||||
var Firebase = require('firebase');
|
||||
var nconf = require('nconf');
|
||||
var isProd = nconf.get('NODE_ENV') === 'production';
|
||||
var firebaseRef;
|
||||
var firebaseConfig = nconf.get('FIREBASE');
|
||||
|
||||
// Setup
|
||||
if(isProd || true){
|
||||
firebaseRef = new Firebase('https://' + firebaseConfig.APP + '.firebaseio.com');
|
||||
|
||||
firebaseRef.on('value', function(snapshot){
|
||||
console.log(snapshot.val());
|
||||
});
|
||||
}
|
||||
|
||||
var api = module.exports = {};
|
||||
Reference in New Issue
Block a user