Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "trollbox", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "trollbox.js", |
@@ -1,3 +0,5 @@ | ||
WIP | ||
# trollbox | ||
wip | ||
<!-- | ||
@@ -4,0 +6,0 @@ Database -> Rules |
@@ -54,8 +54,7 @@ (function (root) { | ||
function initFirebase (config) { | ||
let room = config.room || '' | ||
room = room.replace(/[^a-zA-Z\d]/, '_') | ||
const channel = (config.channel || '').replace(/[^a-zA-Z\d]/, '_') | ||
const app = window.firebase.initializeApp(config.firebase) | ||
const db = app.database() | ||
const ref = db.ref(`trollbox/${room}`) | ||
const ref = db.ref(`trollbox/${channel}`) | ||
@@ -62,0 +61,0 @@ return ref |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7893
21