问题
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'",
来源:https://stackoverflow.com/questions/49087348/add-cloud-firestore-library-to-chrome-extension-content-scripts