I'm trying to load Firebase inside my chrome extension's content script:
var script = document.createElement("script")
script.type = "text/javascript"
script.src = "https://cdn.firebase.com/js/client/1.1.2/firebase.js"
document.body.appendChild(script)
firebaseUrl = 'https://foobar.firebaseio.com'
root = new Firebase(firebaseUrl)
But I get the error message:
Uncaught ReferenceError: Firebase is not defined
What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…