Add Cloud firestore library to chrome extension, content_scripts

做~自己de王妃 提交于 2019-12-07 23:22:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!