Skip to content

Commit

Permalink
Revert "fixed problem on using parameters without secret"
Browse files Browse the repository at this point in the history
  • Loading branch information
marckrenn authored Jan 19, 2017
1 parent 2fee6b8 commit 23f1e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firebase.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class exports.Firebase extends Framer.BaseClass
@debug = @options.debug ?= false
@_status ?= "disconnected"

@secretEndPoint = if @secret then "auth=#{@secret}" else ""
@secretEndPoint = if @secret then "?auth=#{@secret}" else ""
super

console.log "Firebase: Connecting to Firebase Project '#{@projectID}' ... \n URL: 'https://#{@projectID}.firebaseio.com'" if @debug
Expand All @@ -26,7 +26,7 @@ class exports.Firebase extends Framer.BaseClass

request = (project, secret, path, callback, method, data, parameters, debug) ->

url = "https://#{project}.firebaseio.com#{path}.json?#{secret}"
url = "https://#{project}.firebaseio.com#{path}.json#{secret}"


unless parameters is undefined
Expand Down

0 comments on commit 23f1e7e

Please sign in to comment.