Add Cloud firestore library to chrome extension, c

2019-05-23 06:29发布

问题:

Is there any way to add cloud firestore library to content_scripts? I need to add firebase-app.js and firebase-firestore.js

回答1:

I made it work, I just had to download the files from: https://github.com/firebase/firebase-bower then I had to convert firebase-firestore.js to utc8 also added this to my manifest.json:"content_security_policy":"script-src 'self' https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com; object-src 'self'",